Changeset 5006 in orxonox.OLD for orxonox/trunk/src/lib/coord
- Timestamp:
- Aug 14, 2005, 1:50:16 AM (19 years ago)
- Location:
- orxonox/trunk/src/lib/coord
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/coord/p_node.cc
r5005 r5006 528 528 Vector moveVect = (*this->toCoordinate - this->getRelCoor()) *dt*bias; 529 529 530 if (likely(moveVect.len() >= .001))530 if (likely(moveVect.len() >= PNODE_ITERATION_DELTA)) 531 531 { 532 532 this->shiftCoor(moveVect); … … 541 541 if (unlikely(this->toDirection != NULL)) 542 542 { 543 Quaternion rotQuat = Quaternion::quatSlerp(Quaternion(0, Vector(0,1,0)), (*this->toDirection / this->relDirection), dt*this->bias); 544 // printf("1: "); 545 // this->relDirection.debug(); 546 // printf("2: "); 547 // this->toDirection->debug(); 548 printf("3: "); 549 rotQuat.debug2(); 550 551 if (likely(rotQuat.getSpacialAxisAngle() >= .01)) 543 Quaternion rotQuat = Quaternion::quatSlerp(Quaternion(), (*this->toDirection / this->relDirection), dt*this->bias); 544 if (likely(rotQuat.getSpacialAxisAngle() > PNODE_ITERATION_DELTA)) 552 545 { 553 546 this->shiftDir(rotQuat); … … 557 550 delete this->toDirection; 558 551 this->toDirection = NULL; 559 PRINTF( 5)("SmoothRotate of %s finished\n", this->getName());552 PRINTF(0)("SmoothRotate of %s finished\n", this->getName()); 560 553 } 561 554 } -
orxonox/trunk/src/lib/coord/p_node.h
r5000 r5006 25 25 #include "vector.h" 26 26 27 28 27 29 // FORWARD DEFINITION \\ 28 30 class TiXmlElement; 29 31 template<class T> class tList; 30 32 33 #define PNODE_ITERATION_DELTA .001 31 34 //! Parental linkage modes 32 35 typedef enum
Note: See TracChangeset
for help on using the changeset viewer.