Changeset 3686 in orxonox.OLD for orxonox/trunk/src/world_entities
- Timestamp:
- Mar 31, 2005, 12:28:28 AM (20 years ago)
- Location:
- orxonox/trunk/src/world_entities
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/player.cc
r3685 r3686 52 52 acceleration = 10.0; 53 53 //weapons: 54 Weapon* wp = new TestGun(this, new Vector( ), new Quaternion());54 Weapon* wp = new TestGun(this, new Vector(-1.1, 0.0, 2.6), new Quaternion()); 55 55 this->weapons->add(wp); 56 56 this->activeWeapon = wp; -
orxonox/trunk/src/world_entities/projectile.cc
r3685 r3686 99 99 void Projectile::tick (float time) 100 100 { 101 this->speed = this->weapon->getSpeed() * 3; 102 this->shiftCoor(*this->flightDirection * this->speed * time); 103 //printf("current speed is: %f\n", this->speed); 101 this->speed = this->weapon->getSpeed() * 3; 102 Vector v; 103 v = *this->flightDirection * this->speed * time; 104 this->shiftCoor(v); 105 //printf("PROJECTILE: current direction is: (%f, %f, %f)\n",this->flightDirection->x, this->flightDirection->y, this->flightDirection->z ); 106 //printf("PROJECTILE: current shift vector is: (%f, %f, %f)\n", v.x, v.y, v.z); 107 //printf("PROJECTILE: current speed is: %f\n", this->speed); 108 //printf("PROJECTILE: current dt is: %f\n", time); 109 //this->debug(); 104 110 105 111 this->currentLifeTime += time; … … 110 116 PRINTF(5)("FINALIZE=============================================================\n"); 111 117 this->finalize(); 118 this->currentLifeTime = 0.0f; 112 119 } 113 120 } -
orxonox/trunk/src/world_entities/test_gun.cc
r3685 r3686 132 132 { 133 133 this->localTime += time; 134 //this->debug(); 135 //printf("TEST_GUN: this speed is: %f\n", this->getSpeed()); 134 136 } 135 137
Note: See TracChangeset
for help on using the changeset viewer.