Changeset 4998 in orxonox.OLD for orxonox/trunk/src/lib/coord
- Timestamp:
- Aug 13, 2005, 7:19:51 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/coord/p_node.cc
r4997 r4998 327 327 } 328 328 329 330 329 /** 331 330 * sets the absolute direction (0,0,1) … … 543 542 if (unlikely(this->toDirection != NULL)) 544 543 { 545 Quaternion rotQuat = (*this->toDirection / this->getRelDir()) *dt*bias; 546 rotQuat.debug(); 547 // if (likely(rotQuat.len() >= .001)) 544 Quaternion rotQuat = Quaternion(.1, Vector(0,1,0));// (*this->toDirection / this->relDirection); 545 // printf("1: "); 546 // this->relDirection.debug(); 547 // printf("2: "); 548 // this->toDirection->debug(); 549 // printf("3: "); 550 // rotQuat.debug(); 551 552 if (true)//likely(rotQuat.len() >= .001)) 548 553 { 549 554 this->shiftDir(rotQuat); 550 555 } 551 /*else556 else 552 557 { 553 558 delete this->toCoordinate; 554 559 this->toCoordinate = NULL; 555 560 PRINTF(5)("SmoothMove of %s finished\n", this->getName()); 556 } */561 } 557 562 } 558 563 … … 664 669 glMatrixMode(GL_MODELVIEW); 665 670 glPushMatrix(); 666 float matrix[4][4];667 671 668 672 /* translate */ … … 671 675 this->getAbsCoor ().z); 672 676 /* rotate */ 673 this->getAbsDir ().matrix (matrix); 674 glMultMatrixf((float*)matrix); 677 // this->getAbsDir ().matrix (matrix); 678 // glMultMatrixf((float*)matrix); 679 680 Vector tmpRot = this->getAbsDir().getSpacialAxis(); 681 glRotatef (this->getAbsDir().getSpacialAxisAngle(), tmpRot.x, tmpRot.y, tmpRot.z ); 675 682 { 676 683 glBegin(GL_LINE_STRIP);
Note: See TracChangeset
for help on using the changeset viewer.