Changeset 10060 for code/branches/turretFS14/src/modules/objects/Turret.h
- Timestamp:
- May 15, 2014, 5:10:55 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/turretFS14/src/modules/objects/Turret.h
r10049 r10060 46 46 it's behaviour. 47 47 48 This class also contains a custom local coordinate system, which gets initially rotated through xml, and 49 afterwards is updated with the parent's rotation (if there is one). This allows for almost trivialal calculation 50 of pitch, yaw and roll through coordinate transformation. (TODO: Ogre should do something like this already, investigate...) 51 52 48 53 @note 49 54 The rotation isn't limited "physically". You have to call isInRange to find out if the turret is allowed to shoot at a target. … … 58 63 virtual void rotateYaw(const Vector2& value); 59 64 virtual void rotateRoll(const Vector2& value); 60 virtual bool isInRange(const Vector3 &position);65 virtual float isInRange(const WorldEntity* target) const; 61 66 virtual void aimAtPosition(const Vector3 &position); 62 67
Note: See TracChangeset
for help on using the changeset viewer.