Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 14, 2010, 12:41:04 PM (15 years ago)
Author:
gnadler
Message:

rockentcontroller doesn't control the rocket it spawns itself.
Rocket collides wih asteroids& at least drones but does not despawn.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/rocket/src/modules/weapons/projectiles/SimpleRocket.cc

    r6878 r6900  
    6262
    6363
    64         //if (GameMode::isMaster())
    65         //{
     64        if (GameMode::isMaster())
     65       {
    6666           this->setCollisionType(WorldEntity::Kinematic);
    6767            this->setVelocity(0,0,100);
     
    8787
    8888            this->destroyTimer_.setTimer(this->lifetime_, false, createExecutor(createFunctor(&SimpleRocket::destroyObject, this)));
    89        // }
    90 
    91     }
     89        }
     90
     91    }
     92        void SimpleRocket::tick(float dt)
     93    {
     94        SUPER(SimpleRocket, tick, dt);
     95        }
    9296
    9397    /**s
Note: See TracChangeset for help on using the changeset viewer.