- Timestamp:
- Oct 10, 2005, 1:13:56 PM (19 years ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/coord/p_node.cc
r5296 r5354 560 560 if (unlikely(this->toCoordinate != NULL)) 561 561 { 562 Vector moveVect = (*this->toCoordinate - this->getRelCoor()) * dt*bias;562 Vector moveVect = (*this->toCoordinate - this->getRelCoor()) *fabsf(dt)*bias; 563 563 564 564 if (likely(moveVect.len() >= PNODE_ITERATION_DELTA)) … … 575 575 if (unlikely(this->toDirection != NULL)) 576 576 { 577 Quaternion rotQuat = Quaternion::quatSlerp(Quaternion(), (*this->toDirection / this->relDirection), dt*this->bias);577 Quaternion rotQuat = Quaternion::quatSlerp(Quaternion(), (*this->toDirection / this->relDirection), fabsf(dt)*this->bias); 578 578 if (likely(rotQuat.getSpacialAxisAngle() > PNODE_ITERATION_DELTA)) 579 579 { -
trunk/src/lib/graphics/render2D/element_2d.cc
r5286 r5354 622 622 if (unlikely(this->toCoordinate != NULL)) 623 623 { 624 Vector moveVect = (*this->toCoordinate - this->getRelCoor2D()) * dt*bias;624 Vector moveVect = (*this->toCoordinate - this->getRelCoor2D()) *fabsf(dt)*bias; 625 625 626 626 if (likely(moveVect.len() >= .001))//PNODE_ITERATION_DELTA)) … … 637 637 if (unlikely(this->toDirection != NULL)) 638 638 { 639 float rotFlot = (*this->toDirection - this->getRelDir2D()) * dt*bias;639 float rotFlot = (*this->toDirection - this->getRelDir2D()) *fabsf(dt)*bias; 640 640 if (likely(rotFlot >= .001))//PNODE_ITERATION_DELTA)) 641 641 { -
trunk/src/world_entities/camera.cc
r5037 r5354 178 178 void Camera::tick(float dt) 179 179 { 180 float tmpFovy = (this->toFovy - this->fovy) * dt;181 if (tmpFovy > .0 01)182 this->fovy += (this->toFovy - this->fovy) * dt;180 float tmpFovy = (this->toFovy - this->fovy) ; 181 if (tmpFovy > .01) 182 this->fovy += tmpFovy * fabsf(dt); 183 183 } 184 184
Note: See TracChangeset
for help on using the changeset viewer.