Changeset 9169 in orxonox.OLD for branches/presentation
- Timestamp:
- Jul 4, 2006, 8:41:55 PM (18 years ago)
- Location:
- branches/presentation/src/world_entities
- Files:
-
- 2 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 } -
branches/presentation/src/world_entities/projectiles/rail_projectile.cc
r9167 r9169 39 39 this->setClassID(CL_RAIL_PROJECTILE, "RailProjectile"); 40 40 41 this->loadModel("models/projectiles/ test_projectile.obj", 100);41 this->loadModel("models/projectiles/laser_projectile.obj", 100); 42 42 43 43 this->setMinEnergy(10);
Note: See TracChangeset
for help on using the changeset viewer.