Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/simulation2/components/ICmpPosition.h
Show First 20 Lines • Show All 179 Lines • ▼ Show 20 Lines | public: | ||||
/** | /** | ||||
* Returns the previous turn's x,z position (no interpolation). | * Returns the previous turn's x,z position (no interpolation). | ||||
* Must not be called unless IsInWorld is true. | * Must not be called unless IsInWorld is true. | ||||
*/ | */ | ||||
virtual CFixedVector2D GetPreviousPosition2D() const = 0; | virtual CFixedVector2D GetPreviousPosition2D() const = 0; | ||||
/** | /** | ||||
* Returns the turn rate in radians per second. | |||||
*/ | |||||
virtual fixed GetTurnRate() const = 0; | |||||
/** | |||||
* Rotate smoothly to the given angle around the upwards axis. | * Rotate smoothly to the given angle around the upwards axis. | ||||
* @param y clockwise radians from the +Z axis. | * @param y clockwise radians from the +Z axis. | ||||
*/ | */ | ||||
virtual void TurnTo(entity_angle_t y) = 0; | virtual void TurnTo(entity_angle_t y) = 0; | ||||
/** | /** | ||||
* Rotate immediately to the given angle around the upwards axis. | * Rotate immediately to the given angle around the upwards axis. | ||||
* @param y clockwise radians from the +Z axis. | * @param y clockwise radians from the +Z axis. | ||||
▲ Show 20 Lines • Show All 43 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator