Changeset 9167 in orxonox.OLD for branches/presentation/src/world_entities/environments
- Timestamp:
- Jul 4, 2006, 8:20:52 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/presentation/src/world_entities/environments/model_entity.cc
r7193 r9167 32 32 { 33 33 this->setClassID(CL_MODEL_ENTITY, "ModelEntity"); 34 this->toList(OM_ENVIRON _NOTICK);34 this->toList(OM_ENVIRON); 35 35 36 36 this->speed = NULL; … … 71 71 void ModelEntity::setMomentum (float angle, float x, float y, float z) 72 72 { 73 Vector v(x,y,z); 74 v.normalize(); 73 75 if (this->momentum == NULL) 74 76 this->momentum = new Quaternion; 75 *this->momentum = Quaternion(angle, Vector(x, y, z));77 *this->momentum = Quaternion(angle, v); 76 78 } 77 79 78 80 void ModelEntity::tick(float dt) 79 81 { 82 printf("TEST\n"); 80 83 if (this->speed != NULL) 81 84 this->shiftCoor(*this->speed * dt);
Note: See TracChangeset
for help on using the changeset viewer.