Changeset 6616 in orxonox.OLD for trunk/src/lib/coord
- Timestamp:
- Jan 19, 2006, 12:27:45 PM (19 years ago)
- Location:
- trunk/src/lib/coord
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/coord/p_node.cc
r6512 r6616 214 214 215 215 *this->toCoordinate = relCoordSoft; 216 this->toStep = 0.0f; 216 217 this->bias = bias; 217 218 } … … 299 300 *this->toCoordinate = absCoordSoft; 300 301 } 302 this->toStep = 0.0f; 301 303 } 302 304 … … 370 372 *this->toDirection = relDirSoft; 371 373 this->bias = bias; 374 this->toStep = 0.0f; 372 375 this->bRelDirChanged = true; 373 376 } … … 439 442 440 443 this->bias = bias; 444 this->toStep = 0.0f; 441 445 this->bRelDirChanged = true; 442 446 } … … 614 618 } 615 619 this->bias = bias; 616 620 this->toStep = 0.0f; 617 621 618 622 Vector tmpV = this->getAbsCoor(); … … 743 747 if (unlikely(this->toDirection != NULL)) 744 748 { 745 Quaternion rotQuat = Quaternion::quatSlerp(this->relDirection,*this->toDirection, fabsf(dt)*this->bias); 749 this->toStep += fabs(dt) * bias; 750 printf("%s::%s %f\n", this->getClassName(), this->getName(), this->toStep ); 751 Quaternion rotQuat = Quaternion::quatSlerp(this->relDirection,*this->toDirection, toStep); 746 752 if (this->relDirection.distance(rotQuat) >PNODE_ITERATION_DELTA) 747 753 { -
trunk/src/lib/coord/p_node.h
r6512 r6616 24 24 25 25 #include "vector.h" 26 #include "quaternion.h" 26 27 #include <list> 27 28 … … 218 219 Quaternion* toDirection; //!< a direction to which to iterate. (This is used in conjunction with setParentSoft and set*DirSoft) 219 220 float bias; //!< how fast to iterate to the given position (default is 1) 221 float toStep; 220 222 221 223 PNode* parent; //!< a pointer to the parent node.
Note: See TracChangeset
for help on using the changeset viewer.