Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 26, 2010, 4:28:14 PM (14 years ago)
Author:
gnadler
Message:

now rocket slows and then finally stops after a given number of ticks (aka fuel).
rocket speeds up if distance is greater than x (right now 1000 but can be changed).
collisionShape not yet fixed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/rocket2/src/modules/weapons/RocketController.h

    r6951 r6966  
    4141    /**
    4242    @brief
    43         Controller for the Drone of the PPS tutorial.
     43        Controller for the Rocket (targetseeking)
    4444    @author
    4545        Gabriel Nadler, Originalfile: Oli Scheuss
     
    5252           
    5353            virtual void tick(float dt);
    54                         SimpleRocket* getRocket(){return this->rocket;};
     54                        SimpleRocket* getRocket(){return this->rocket_;};
    5555                        void setTarget(WorldEntity* target);
    5656        protected:
     
    6060
    6161        private:
    62                         SimpleRocket* rocket;
     62                        SimpleRocket* rocket_;
    6363                        Vector3 targetPosition_;
    6464                        WeakPtr<PlayerInfo> player_;
    65                                                 int haha;
     65                                               
    6666                        WeakPtr<WorldEntity> target_;
     67            int counter_;
    6768
    6869
Note: See TracChangeset for help on using the changeset viewer.