Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 30, 2015, 9:34:54 PM (9 years ago)
Author:
gania
Message:

tried to fix fighting whn fps is low

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/campaignHS15/src/orxonox/controllers/FightingController.h

    r10898 r10906  
    6767            void maneuver(); //<! sets this->targetPosition_, which is a Vector3 of where this ship flies. Decision is made based on
    6868                             //<! the distance to enemy, if being attacked, dodge() is called, otherwise ship just flies towards this->target_.
    69             void dodge(const Vector3& thisPosition, Vector3& diffUnit); //<! choose a random Vector3 perpendicular to the difference vector between
     69            void dodge(const Vector3& thisPosition, float diffLength,  Vector3& diffUnit); //<! choose a random Vector3 perpendicular to the difference vector between
    7070                                                                        //<! this and target_ plus or minus some amount in difference vector direction,
    7171                                                                        //<! depending on whether it is better to close up or survive.
     
    8484            int attackRange_;
    8585            bool bShooting_;
    86             int maneuverCounter_;   
     86            float maneuverCounter_;   
    8787            bool bLookAtTarget_;
    8888            float deltaHp;
    8989            float previousHp;
     90            bool bStartedDodging_;
     91            float timeDodged_;
    9092            //WEAPONSYSTEM DATA
    9193            int rocketsLeft_;
Note: See TracChangeset for help on using the changeset viewer.