Changeset 10044 for code/branches/turretFS14/src/modules/objects/Turret.h
- Timestamp:
- May 6, 2014, 11:07:07 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/turretFS14/src/modules/objects/Turret.h
r10039 r10044 50 50 virtual void rotateYaw(const Vector2& value); 51 51 virtual void rotateRoll(const Vector2& value); 52 virtual bool isInRange(const Vector3 &position); 53 virtual void aimAtPosition(const Vector3 &position); 52 54 53 55 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 54 56 virtual void tick(float dt); 55 57 58 inline void setAttackRadius(float radius) 59 { this->attackRadius_ = radius; } 60 61 inline void setMaxPitch(float pitch) 62 { this->maxPitch_ = pitch; } 63 64 inline void setMaxYaw(float yaw) 65 { this->maxYaw_ = yaw; } 66 67 inline float getAttackRadius() const 68 { return this->attackRadius_; } 69 70 inline float getMaxPitch() const 71 { return this->maxPitch_; } 72 73 inline float getMaxYaw() const 74 { return this->maxYaw_; } 75 76 protected: 77 Vector3 startDir_; 78 Vector3 localZ_; 79 Vector3 localZStart_; 80 Vector3 localY_; 81 Vector3 localYStart_; 82 Vector3 localX_; 83 Vector3 localXStart_; 56 84 57 85 private: 86 bool once_; 87 88 float attackRadius_; 89 Ogre::Real maxPitch_; 90 Ogre::Real maxYaw_; 58 91 float rotationThrust_; 59 92 60 btVector3 localAngularAcceleration_;93 Quaternion rotation_; 61 94 }; 62 95 }
Note: See TracChangeset
for help on using the changeset viewer.