Package com.prineside.luaj.mapping.parts
Class LJ_GDX_ai.Steerable_DA.LIP
java.lang.Object
com.prineside.luaj.mapping.InterfaceProxy
com.prineside.luaj.mapping.parts.LJ_GDX_ai.Steerable_DA.LIP
- All Implemented Interfaces:
com.badlogic.gdx.ai.steer.Limiter
,com.badlogic.gdx.ai.steer.Steerable
,com.badlogic.gdx.ai.utils.Location
,com.esotericsoftware.kryo.KryoSerializable
- Enclosing class:
- LJ_GDX_ai.Steerable_DA
public static class LJ_GDX_ai.Steerable_DA.LIP
extends InterfaceProxy
implements com.badlogic.gdx.ai.steer.Steerable
-
Method Summary
Modifier and TypeMethodDescriptioncom.badlogic.gdx.math.Vector
angleToVector
(com.badlogic.gdx.math.Vector p1, float p2) Returns the unit vector in the direction of the specified angle expressed in radians.float
Returns the float value indicating the the angular velocity in radians of this Steerable.float
Returns the bounding radius of this Steerable.com.badlogic.gdx.math.Vector
Returns the vector indicating the linear velocity of this Steerable.float
Returns the maximum angular acceleration.float
Returns the maximum angular speed.float
Returns the maximum linear acceleration.float
Returns the maximum linear speed.float
Returns the float value indicating the orientation of this location.com.badlogic.gdx.math.Vector
Returns the vector indicating the position of this location.float
Returns the threshold below which the linear speed can be considered zero.boolean
isTagged()
Returnstrue
if this Steerable is tagged;false
otherwise.com.badlogic.gdx.ai.utils.Location
Creates a new location.void
setMaxAngularAcceleration
(float p1) Sets the maximum angular acceleration.void
setMaxAngularSpeed
(float p1) Sets the maximum angular speed.void
setMaxLinearAcceleration
(float p1) Sets the maximum linear acceleration.void
setMaxLinearSpeed
(float p1) Sets the maximum linear speed.void
setOrientation
(float p1) Sets the orientation of this location, i.e.void
setTagged
(boolean p1) Tag/untag this Steerable.void
setZeroLinearSpeedThreshold
(float p1) Sets the threshold below which the linear speed can be considered zero.float
vectorToAngle
(com.badlogic.gdx.math.Vector p1) Returns the angle in radians pointing along the specified vector.Methods inherited from class com.prineside.luaj.mapping.InterfaceProxy
getLuaObj, read, write
-
Method Details
-
angleToVector
public com.badlogic.gdx.math.Vector angleToVector(com.badlogic.gdx.math.Vector p1, float p2) Description copied from interface:com.badlogic.gdx.ai.utils.Location
Returns the unit vector in the direction of the specified angle expressed in radians.- Specified by:
angleToVector
in interfacecom.badlogic.gdx.ai.utils.Location
- Parameters:
p1
- the output vector.p2
- the angle in radians.- Returns:
- the output vector for chaining.
-
getAngularVelocity
public float getAngularVelocity()Description copied from interface:com.badlogic.gdx.ai.steer.Steerable
Returns the float value indicating the the angular velocity in radians of this Steerable.- Specified by:
getAngularVelocity
in interfacecom.badlogic.gdx.ai.steer.Steerable
-
getBoundingRadius
public float getBoundingRadius()Description copied from interface:com.badlogic.gdx.ai.steer.Steerable
Returns the bounding radius of this Steerable.- Specified by:
getBoundingRadius
in interfacecom.badlogic.gdx.ai.steer.Steerable
-
getLinearVelocity
public com.badlogic.gdx.math.Vector getLinearVelocity()Description copied from interface:com.badlogic.gdx.ai.steer.Steerable
Returns the vector indicating the linear velocity of this Steerable.- Specified by:
getLinearVelocity
in interfacecom.badlogic.gdx.ai.steer.Steerable
-
getMaxAngularAcceleration
public float getMaxAngularAcceleration()Description copied from interface:com.badlogic.gdx.ai.steer.Limiter
Returns the maximum angular acceleration.- Specified by:
getMaxAngularAcceleration
in interfacecom.badlogic.gdx.ai.steer.Limiter
-
getMaxAngularSpeed
public float getMaxAngularSpeed()Description copied from interface:com.badlogic.gdx.ai.steer.Limiter
Returns the maximum angular speed.- Specified by:
getMaxAngularSpeed
in interfacecom.badlogic.gdx.ai.steer.Limiter
-
getMaxLinearAcceleration
public float getMaxLinearAcceleration()Description copied from interface:com.badlogic.gdx.ai.steer.Limiter
Returns the maximum linear acceleration.- Specified by:
getMaxLinearAcceleration
in interfacecom.badlogic.gdx.ai.steer.Limiter
-
getMaxLinearSpeed
public float getMaxLinearSpeed()Description copied from interface:com.badlogic.gdx.ai.steer.Limiter
Returns the maximum linear speed.- Specified by:
getMaxLinearSpeed
in interfacecom.badlogic.gdx.ai.steer.Limiter
-
getOrientation
public float getOrientation()Description copied from interface:com.badlogic.gdx.ai.utils.Location
Returns the float value indicating the orientation of this location. The orientation is the angle in radians representing the direction that this location is facing.- Specified by:
getOrientation
in interfacecom.badlogic.gdx.ai.utils.Location
-
getPosition
public com.badlogic.gdx.math.Vector getPosition()Description copied from interface:com.badlogic.gdx.ai.utils.Location
Returns the vector indicating the position of this location.- Specified by:
getPosition
in interfacecom.badlogic.gdx.ai.utils.Location
-
getZeroLinearSpeedThreshold
public float getZeroLinearSpeedThreshold()Description copied from interface:com.badlogic.gdx.ai.steer.Limiter
Returns the threshold below which the linear speed can be considered zero. It must be a small positive value near to zero. Usually it is used to avoid updating the orientation when the velocity vector has a negligible length.- Specified by:
getZeroLinearSpeedThreshold
in interfacecom.badlogic.gdx.ai.steer.Limiter
-
isTagged
public boolean isTagged()Description copied from interface:com.badlogic.gdx.ai.steer.Steerable
Returnstrue
if this Steerable is tagged;false
otherwise.- Specified by:
isTagged
in interfacecom.badlogic.gdx.ai.steer.Steerable
-
newLocation
public com.badlogic.gdx.ai.utils.Location newLocation()Description copied from interface:com.badlogic.gdx.ai.utils.Location
Creates a new location.This method is used internally to instantiate locations of the correct type parameter
T
. This technique keeps the API simple and makes the API easier to use with the GWT backend because avoids the use of reflection.- Specified by:
newLocation
in interfacecom.badlogic.gdx.ai.utils.Location
- Returns:
- the newly created location.
-
setMaxAngularAcceleration
public void setMaxAngularAcceleration(float p1) Description copied from interface:com.badlogic.gdx.ai.steer.Limiter
Sets the maximum angular acceleration.- Specified by:
setMaxAngularAcceleration
in interfacecom.badlogic.gdx.ai.steer.Limiter
-
setMaxAngularSpeed
public void setMaxAngularSpeed(float p1) Description copied from interface:com.badlogic.gdx.ai.steer.Limiter
Sets the maximum angular speed.- Specified by:
setMaxAngularSpeed
in interfacecom.badlogic.gdx.ai.steer.Limiter
-
setMaxLinearAcceleration
public void setMaxLinearAcceleration(float p1) Description copied from interface:com.badlogic.gdx.ai.steer.Limiter
Sets the maximum linear acceleration.- Specified by:
setMaxLinearAcceleration
in interfacecom.badlogic.gdx.ai.steer.Limiter
-
setMaxLinearSpeed
public void setMaxLinearSpeed(float p1) Description copied from interface:com.badlogic.gdx.ai.steer.Limiter
Sets the maximum linear speed.- Specified by:
setMaxLinearSpeed
in interfacecom.badlogic.gdx.ai.steer.Limiter
-
setOrientation
public void setOrientation(float p1) Description copied from interface:com.badlogic.gdx.ai.utils.Location
Sets the orientation of this location, i.e. the angle in radians representing the direction that this location is facing.- Specified by:
setOrientation
in interfacecom.badlogic.gdx.ai.utils.Location
- Parameters:
p1
- the orientation in radians
-
setTagged
public void setTagged(boolean p1) Description copied from interface:com.badlogic.gdx.ai.steer.Steerable
Tag/untag this Steerable. This is a generic flag utilized in a variety of ways.- Specified by:
setTagged
in interfacecom.badlogic.gdx.ai.steer.Steerable
- Parameters:
p1
- the boolean value to set
-
setZeroLinearSpeedThreshold
public void setZeroLinearSpeedThreshold(float p1) Description copied from interface:com.badlogic.gdx.ai.steer.Limiter
Sets the threshold below which the linear speed can be considered zero. It must be a small positive value near to zero. Usually it is used to avoid updating the orientation when the velocity vector has a negligible length.- Specified by:
setZeroLinearSpeedThreshold
in interfacecom.badlogic.gdx.ai.steer.Limiter
-
vectorToAngle
public float vectorToAngle(com.badlogic.gdx.math.Vector p1) Description copied from interface:com.badlogic.gdx.ai.utils.Location
Returns the angle in radians pointing along the specified vector.- Specified by:
vectorToAngle
in interfacecom.badlogic.gdx.ai.utils.Location
- Parameters:
p1
- the vector
-