Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 17, 2014, 4:05:06 PM (11 years ago)
Author:
muemart
Message:

Move logic into controller, don't use bullet for rotations, and use WorldPosition in FormationController+ (good idea?)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/turretFS14/src/modules/objects/Turret.h

    r10031 r10039  
    5454            virtual void tick(float dt);
    5555
    56             virtual bool isInRange(Vector3 position);
    57 
    58             inline void setMaxPitch(Ogre::Real pitch)
    59                 {this->maxPitch_ = pitch;}
    60 
    61             inline Ogre::Real getMaxPitch()
    62                 {return this->maxPitch_;}
    63 
    64             inline void setMaxYaw(Ogre::Real yaw)
    65                 {this->maxYaw_ = yaw;}
    66 
    67             inline Ogre::Real getMaxYaw()
    68                 {return this->maxYaw_;}
    69 
    70             inline void setAttackRadius(float radius)
    71                 {this->attackRadius_ = radius;}
    72 
    73             inline float getAttackRadius()
    74                 {return this->attackRadius_;}
    75 
    7656
    7757        private:
    78             bool gotOrient_;
    79             Ogre::Real maxPitch_;
    80             Ogre::Real maxYaw_;
    81             float attackRadius_;
    82             Quaternion startOrient_;
    83             Vector3 startDir_;
    84             Vector3 localZ_;
    85             Vector3 localY_;
    86             Vector3 localX_;
    8758            float rotationThrust_;
    8859
     
    9263
    9364#endif
    94 
Note: See TracChangeset for help on using the changeset viewer.