Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5354 in orxonox.OLD for trunk/src/lib/coord


Ignore:
Timestamp:
Oct 10, 2005, 1:13:56 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: animationing is reversible over time (try setting in the SHELL: World speed -1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/coord/p_node.cc

    r5296 r5354  
    560560      if (unlikely(this->toCoordinate != NULL))
    561561      {
    562         Vector moveVect = (*this->toCoordinate - this->getRelCoor()) *dt*bias;
     562        Vector moveVect = (*this->toCoordinate - this->getRelCoor()) *fabsf(dt)*bias;
    563563
    564564        if (likely(moveVect.len() >= PNODE_ITERATION_DELTA))
     
    575575      if (unlikely(this->toDirection != NULL))
    576576      {
    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);
    578578        if (likely(rotQuat.getSpacialAxisAngle() > PNODE_ITERATION_DELTA))
    579579        {
Note: See TracChangeset for help on using the changeset viewer.