Changeset 9169 in orxonox.OLD for branches/presentation/src/world_entities/environments
- Timestamp:
- Jul 4, 2006, 8:41:55 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/presentation/src/world_entities/environments/model_entity.cc
r9167 r9169 72 72 { 73 73 Vector v(x,y,z); 74 v.debug(); 74 75 v.normalize(); 76 v.debug(); 77 75 78 if (this->momentum == NULL) 76 79 this->momentum = new Quaternion; 77 80 *this->momentum = Quaternion(angle, v); 81 82 this->momentum->debug(); 78 83 } 79 84 80 85 void ModelEntity::tick(float dt) 81 86 { 82 printf("TEST\n");83 87 if (this->speed != NULL) 84 88 this->shiftCoor(*this->speed * dt); 85 89 86 90 if (this->momentum != NULL) 87 this->shiftDir(*this->momentum * dt); 91 { 92 this->shiftDir((*this->momentum * dt ).getNormalized()); 93 //this->getAbsDir().debug(); 94 } 88 95 }
Note: See TracChangeset
for help on using the changeset viewer.