Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4464 in orxonox.OLD for orxonox/trunk/src/world_entities/test_gun.cc


Ignore:
Timestamp:
Jun 2, 2005, 1:18:44 AM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: reimplemented the shoot speed function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/world_entities/test_gun.cc

    r4391 r4464  
    145145
    146146  Projectile* pj = dynamic_cast<Projectile*>(ObjectManager::getInstance()->getFromDeadList(CL_TEST_BULLET));
    147 
    148   //printf( "object ref %p\n", ObjectManager::getInstance()->getFromDeadList(CL_TEST_BULLET));
    149 
    150   //Projectile* pj = new TestBullet(this);
    151147  pj->setAbsCoor(this->getAbsCoor() + this->projectileOffset);
    152148  pj->setAbsDir(this->getAbsDir());
    153   pj->setFlightDirection(this->getAbsDir());
    154   pj->setSpeed(this->getSpeed());
     149  pj->setVelocity(this->getVelocity());
    155150  this->worldEntities->add(pj);
    156151  this->localTime = 0;
Note: See TracChangeset for help on using the changeset viewer.