Changeset 9235 in orxonox.OLD for trunk/src/world_entities/environments/model_entity.cc
- Timestamp:
- Jul 5, 2006, 4:39:02 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/environments/model_entity.cc
r7193 r9235 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.debug(); 75 v.normalize(); 76 v.debug(); 77 73 78 if (this->momentum == NULL) 74 79 this->momentum = new Quaternion; 75 *this->momentum = Quaternion(angle, Vector(x, y, z)); 80 *this->momentum = Quaternion(angle, v); 81 82 this->momentum->debug(); 76 83 } 77 84 … … 82 89 83 90 if (this->momentum != NULL) 84 this->shiftDir(*this->momentum * dt); 91 { 92 this->shiftDir((*this->momentum * dt ).getNormalized()); 93 //this->getAbsDir().debug(); 94 } 85 95 }
Note: See TracChangeset
for help on using the changeset viewer.