Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 15, 2014, 5:10:55 PM (10 years ago)
Author:
muemart
Message:

Fix team acquisition, edit test level and start to try to make a raytest

File:
1 edited

Legend:

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

    r10049 r10060  
    4646        it's behaviour.
    4747
     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
    4853    @note
    4954        The rotation isn't limited "physically". You have to call isInRange to find out if the turret is allowed to shoot at a target.
     
    5863            virtual void rotateYaw(const Vector2& value);
    5964            virtual void rotateRoll(const Vector2& value);
    60             virtual bool isInRange(const Vector3 &position);
     65            virtual float isInRange(const WorldEntity* target) const;
    6166            virtual void aimAtPosition(const Vector3 &position);
    6267
Note: See TracChangeset for help on using the changeset viewer.