Changeset 3675 in orxonox.OLD for orxonox/trunk/src/world_entities
- Timestamp:
- Mar 30, 2005, 5:20:21 PM (20 years ago)
- Location:
- orxonox/trunk/src/world_entities
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/player.cc
r3672 r3675 178 178 //orthDirection = orthDirection.cross (direction); 179 179 180 if( this->bUp && this->getRelCoor() .x < 20)180 if( this->bUp && this->getRelCoor()->x < 20) 181 181 accel = accel+(direction*acceleration); 182 if( this->bDown && this->getRelCoor() .x > -5)182 if( this->bDown && this->getRelCoor()->x > -5) 183 183 accel = accel-(direction*acceleration); 184 if( this->bLeft && TrackManager::getInstance()->getWidth() > -this->getRelCoor() .z*2)184 if( this->bLeft && TrackManager::getInstance()->getWidth() > -this->getRelCoor()->z*2) 185 185 accel = accel - (orthDirection*acceleration); 186 if( this->bRight && TrackManager::getInstance()->getWidth() > this->getRelCoor() .z*2)186 if( this->bRight && TrackManager::getInstance()->getWidth() > this->getRelCoor()->z*2) 187 187 accel = accel + (orthDirection*acceleration); 188 188 if( this->bAscend ) -
orxonox/trunk/src/world_entities/projectile.cc
r3672 r3675 101 101 if( this->ttl < this->currentLifeTime) 102 102 { 103 *this->flightDirection = *this->flightDirection * this->speed ;103 *this->flightDirection = *this->flightDirection * this->speed * time; 104 104 this->shiftCoor(this->flightDirection); 105 105 this->flightDirection->debug(); -
orxonox/trunk/src/world_entities/test_gun.cc
r3670 r3675 84 84 //printf("TestGun::fire() - firing weapon now ---------------------------\n"); 85 85 Projectile* pj = new Projectile(); 86 86 87 Vector* v = new Vector(); 87 88 *v = this->getAbsCoor(); … … 93 94 pj->setFlightDirection(q); 94 95 //pj->setSpeed(this->getSpeed() * 0.025); 96 95 97 96 98
Note: See TracChangeset
for help on using the changeset viewer.