Changeset 10031 for code/branches/turretFS14/src/modules/objects/Turret.h
- Timestamp:
- Apr 10, 2014, 4:06:03 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/turretFS14/src/modules/objects/Turret.h
r10021 r10031 37 37 38 38 #include "objects/ObjectsPrereqs.h" 39 #include "OgreQuaternion.h" 40 41 #include "worldentities/pawns/SpaceShip.h" 39 #include "worldentities/pawns/Pawn.h" 42 40 43 41 namespace orxonox … … 56 54 virtual void tick(float dt); 57 55 56 virtual bool isInRange(Vector3 position); 57 58 58 inline void setMaxPitch(Ogre::Real pitch) 59 59 {this->maxPitch_ = pitch;} … … 68 68 {return this->maxYaw_;} 69 69 70 inline void setAttackRadius(float radius) 71 {this->attackRadius_ = radius;} 72 73 inline float getAttackRadius() 74 {return this->attackRadius_;} 75 76 70 77 private: 71 78 bool gotOrient_; 72 79 Ogre::Real maxPitch_; 73 80 Ogre::Real maxYaw_; 74 Quaternion startOrientInv_; 81 float attackRadius_; 82 Quaternion startOrient_; 83 Vector3 startDir_; 84 Vector3 localZ_; 85 Vector3 localY_; 86 Vector3 localX_; 75 87 float rotationThrust_; 76 88 77 89 btVector3 localAngularAcceleration_; 78 79 Ogre::Real boundBetween(float val, float lowerBound, float upperBound);80 90 }; 81 91 }
Note: See TracChangeset
for help on using the changeset viewer.