- Timestamp:
- Aug 14, 2005, 1:26:49 AM (19 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/coord/p_node.cc
r5003 r5005 541 541 if (unlikely(this->toDirection != NULL)) 542 542 { 543 Quaternion rotQuat = (*this->toDirection / this->relDirection);543 Quaternion rotQuat = Quaternion::quatSlerp(Quaternion(0, Vector(0,1,0)), (*this->toDirection / this->relDirection), dt*this->bias); 544 544 // printf("1: "); 545 545 // this->relDirection.debug(); -
orxonox/trunk/src/lib/math/vector.cc
r5004 r5005 76 76 and right should be -x or +x respectively or the mesh wont rotate correctly. 77 77 * 78 * @TODO !!! OPTIMIZE THIS!!!78 * @TODO !!! OPTIMIZE THIS !!! 79 79 */ 80 80 Quaternion::Quaternion (const Vector& dir, const Vector& up) -
orxonox/trunk/src/world_entities/camera.cc
r5004 r5005 146 146 this->setRelCoorSoft(4, 0, 0); 147 147 this->target->setRelCoorSoft(10,0,0); 148 //this->target->setRelDirSoft(Quaternion(M_PI/4.0, Vector(0,1,0)));148 // this->target->setRelDirSoft(Quaternion(M_PI/4.0, Vector(0,1,0))); 149 149 break; 150 150 case VIEW_LEFT: -
orxonox/trunk/src/world_entities/camera.h
r5004 r5005 1 1 /*! 2 \file camera.h3 *Viewpoint controlling class definitions2 * @file camera.h 3 * Viewpoint controlling class definitions 4 4 */ 5 5 … … 28 28 //! Camera 29 29 /** 30 30 * This class controls the viewpoint from which the World is rendered. 31 31 */ 32 32 class Camera : public PNode, public EventListener -
orxonox/trunk/src/world_entities/player.cc
r5004 r5005 121 121 void Player::init() 122 122 { 123 // this->setAbsDir(Quaternion(M_PI, Vector(1,0,0)));123 this->setRelDir(Quaternion(M_PI, Vector(1,0,0))); 124 124 this->setClassID(CL_PLAYER, "Player"); 125 125 travelSpeed = 15.0;
Note: See TracChangeset
for help on using the changeset viewer.