T - Type of vector, either 2D or 3D, implementing the Vector interfacepublic interface Steerable<T extends com.badlogic.gdx.math.Vector<T>> extends Location<T>, Limiter
Steerable is a Location that gives access to the character's data required by steering system.
Notice that there is nothing to connect the direction that a Steerable is moving and the direction it is facing. For instance, a character can be oriented along the x-axis but be traveling directly along the y-axis.
| Modifier and Type | Method and Description |
|---|---|
float |
getAngularVelocity()
Returns the float value indicating the the angular velocity in radians of this Steerable.
|
float |
getBoundingRadius()
Returns the bounding radius of this Steerable.
|
T |
getLinearVelocity()
Returns the vector indicating the linear velocity of this Steerable.
|
boolean |
isTagged()
Returns
true if this Steerable is tagged; false otherwise. |
void |
setTagged(boolean tagged)
Tag/untag this Steerable.
|
angleToVector, getOrientation, getPosition, newLocation, setOrientation, vectorToAnglegetMaxAngularAcceleration, getMaxAngularSpeed, getMaxLinearAcceleration, getMaxLinearSpeed, getZeroLinearSpeedThreshold, setMaxAngularAcceleration, setMaxAngularSpeed, setMaxLinearAcceleration, setMaxLinearSpeed, setZeroLinearSpeedThresholdT getLinearVelocity()
float getAngularVelocity()
float getBoundingRadius()
boolean isTagged()
true if this Steerable is tagged; false otherwise.void setTagged(boolean tagged)
tagged - the boolean value to set