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
-
Field Summary
Fields inherited from class com.prineside.luaj.mapping.InterfaceProxy
luaObj -
Method Summary
Modifier and TypeMethodDescriptioncom.badlogic.gdx.math.VectorangleToVector(com.badlogic.gdx.math.Vector p1, float p2) Returns the unit vector in the direction of the specified angle expressed in radians.floatReturns the float value indicating the the angular velocity in radians of this Steerable.floatReturns the bounding radius of this Steerable.com.badlogic.gdx.math.VectorReturns the vector indicating the linear velocity of this Steerable.floatReturns the maximum angular acceleration.floatReturns the maximum angular speed.floatReturns the maximum linear acceleration.floatReturns the maximum linear speed.floatReturns the float value indicating the orientation of this location.com.badlogic.gdx.math.VectorReturns the vector indicating the position of this location.floatReturns the threshold below which the linear speed can be considered zero.booleanisTagged()Returnstrueif this Steerable is tagged;falseotherwise.com.badlogic.gdx.ai.utils.LocationCreates a new location.voidsetMaxAngularAcceleration(float p1) Sets the maximum angular acceleration.voidsetMaxAngularSpeed(float p1) Sets the maximum angular speed.voidsetMaxLinearAcceleration(float p1) Sets the maximum linear acceleration.voidsetMaxLinearSpeed(float p1) Sets the maximum linear speed.voidsetOrientation(float p1) Sets the orientation of this location, i.e.voidsetTagged(boolean p1) Tag/untag this Steerable.voidsetZeroLinearSpeedThreshold(float p1) Sets the threshold below which the linear speed can be considered zero.floatvectorToAngle(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.LocationReturns the unit vector in the direction of the specified angle expressed in radians.- Specified by:
angleToVectorin 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.SteerableReturns the float value indicating the the angular velocity in radians of this Steerable.- Specified by:
getAngularVelocityin interfacecom.badlogic.gdx.ai.steer.Steerable
-
getBoundingRadius
public float getBoundingRadius()Description copied from interface:com.badlogic.gdx.ai.steer.SteerableReturns the bounding radius of this Steerable.- Specified by:
getBoundingRadiusin interfacecom.badlogic.gdx.ai.steer.Steerable
-
getLinearVelocity
public com.badlogic.gdx.math.Vector getLinearVelocity()Description copied from interface:com.badlogic.gdx.ai.steer.SteerableReturns the vector indicating the linear velocity of this Steerable.- Specified by:
getLinearVelocityin interfacecom.badlogic.gdx.ai.steer.Steerable
-
getMaxAngularAcceleration
public float getMaxAngularAcceleration()Description copied from interface:com.badlogic.gdx.ai.steer.LimiterReturns the maximum angular acceleration.- Specified by:
getMaxAngularAccelerationin interfacecom.badlogic.gdx.ai.steer.Limiter
-
getMaxAngularSpeed
public float getMaxAngularSpeed()Description copied from interface:com.badlogic.gdx.ai.steer.LimiterReturns the maximum angular speed.- Specified by:
getMaxAngularSpeedin interfacecom.badlogic.gdx.ai.steer.Limiter
-
getMaxLinearAcceleration
public float getMaxLinearAcceleration()Description copied from interface:com.badlogic.gdx.ai.steer.LimiterReturns the maximum linear acceleration.- Specified by:
getMaxLinearAccelerationin interfacecom.badlogic.gdx.ai.steer.Limiter
-
getMaxLinearSpeed
public float getMaxLinearSpeed()Description copied from interface:com.badlogic.gdx.ai.steer.LimiterReturns the maximum linear speed.- Specified by:
getMaxLinearSpeedin interfacecom.badlogic.gdx.ai.steer.Limiter
-
getOrientation
public float getOrientation()Description copied from interface:com.badlogic.gdx.ai.utils.LocationReturns 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:
getOrientationin interfacecom.badlogic.gdx.ai.utils.Location
-
getPosition
public com.badlogic.gdx.math.Vector getPosition()Description copied from interface:com.badlogic.gdx.ai.utils.LocationReturns the vector indicating the position of this location.- Specified by:
getPositionin interfacecom.badlogic.gdx.ai.utils.Location
-
getZeroLinearSpeedThreshold
public float getZeroLinearSpeedThreshold()Description copied from interface:com.badlogic.gdx.ai.steer.LimiterReturns 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:
getZeroLinearSpeedThresholdin interfacecom.badlogic.gdx.ai.steer.Limiter
-
isTagged
public boolean isTagged()Description copied from interface:com.badlogic.gdx.ai.steer.SteerableReturnstrueif this Steerable is tagged;falseotherwise.- Specified by:
isTaggedin interfacecom.badlogic.gdx.ai.steer.Steerable
-
newLocation
public com.badlogic.gdx.ai.utils.Location newLocation()Description copied from interface:com.badlogic.gdx.ai.utils.LocationCreates 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:
newLocationin 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.LimiterSets the maximum angular acceleration.- Specified by:
setMaxAngularAccelerationin interfacecom.badlogic.gdx.ai.steer.Limiter
-
setMaxAngularSpeed
public void setMaxAngularSpeed(float p1) Description copied from interface:com.badlogic.gdx.ai.steer.LimiterSets the maximum angular speed.- Specified by:
setMaxAngularSpeedin interfacecom.badlogic.gdx.ai.steer.Limiter
-
setMaxLinearAcceleration
public void setMaxLinearAcceleration(float p1) Description copied from interface:com.badlogic.gdx.ai.steer.LimiterSets the maximum linear acceleration.- Specified by:
setMaxLinearAccelerationin interfacecom.badlogic.gdx.ai.steer.Limiter
-
setMaxLinearSpeed
public void setMaxLinearSpeed(float p1) Description copied from interface:com.badlogic.gdx.ai.steer.LimiterSets the maximum linear speed.- Specified by:
setMaxLinearSpeedin interfacecom.badlogic.gdx.ai.steer.Limiter
-
setOrientation
public void setOrientation(float p1) Description copied from interface:com.badlogic.gdx.ai.utils.LocationSets the orientation of this location, i.e. the angle in radians representing the direction that this location is facing.- Specified by:
setOrientationin 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.SteerableTag/untag this Steerable. This is a generic flag utilized in a variety of ways.- Specified by:
setTaggedin 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.LimiterSets 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:
setZeroLinearSpeedThresholdin 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.LocationReturns the angle in radians pointing along the specified vector.- Specified by:
vectorToAnglein interfacecom.badlogic.gdx.ai.utils.Location- Parameters:
p1- the vector
-