Changeset 5004 in orxonox.OLD for orxonox/trunk
- Timestamp:
- Aug 13, 2005, 10:44:50 PM (19 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/math/vector.cc
r5000 r5004 75 75 in mind that if you do that, the model's front has to point in +z direction, and left 76 76 and right should be -x or +x respectively or the mesh wont rotate correctly. 77 * 78 * @TODO !!!OPTIMIZE THIS!!! 77 79 */ 78 80 Quaternion::Quaternion (const Vector& dir, const Vector& up) 79 81 { 80 Vector z = dir; 81 z.normalize(); 82 Vector x = up.cross(z); 83 x.normalize(); 82 Vector z = dir.getNormalized(); 83 Vector x = up.cross(z).getNormalized(); 84 84 Vector y = z.cross(x); 85 85 -
orxonox/trunk/src/story_entities/world.cc
r4986 r5004 377 377 tn->addChild(this->localCamera); 378 378 localCamera->lookAt(tn); 379 localCamera->setParentMode(PNODE_MOVEMENT);380 379 localCamera->setClipRegion(1, 10000.0); 381 380 this->localPlayer->setParentMode(PNODE_ALL); -
orxonox/trunk/src/world_entities/camera.cc
r5000 r5004 52 52 this->setViewMode(VIEW_NORMAL); 53 53 54 //this->setParentMode(PNODE_MOVEMENT);54 this->setParentMode(PNODE_ALL); 55 55 } 56 56 … … 261 261 } 262 262 263 CameraTarget::~CameraTarget()264 {265 266 } -
orxonox/trunk/src/world_entities/camera.h
r4987 r5004 69 69 70 70 public: 71 virtual ~CameraTarget();72 71 }; 73 72 -
orxonox/trunk/src/world_entities/player.cc
r5003 r5004 121 121 void Player::init() 122 122 { 123 this->setAbsDir(Quaternion(.5, Vector(1,0,0))); 124 123 // this->setAbsDir(Quaternion(M_PI, Vector(1,0,0))); 125 124 this->setClassID(CL_PLAYER, "Player"); 126 125 travelSpeed = 15.0;
Note: See TracChangeset
for help on using the changeset viewer.