Package com.prineside.luaj.mapping.parts
Class LJ_GDX_ai.Path_ER.LIP
java.lang.Object
com.prineside.luaj.mapping.InterfaceProxy
com.prineside.luaj.mapping.parts.LJ_GDX_ai.Path_ER.LIP
- All Implemented Interfaces:
com.badlogic.gdx.ai.steer.utils.Path
,com.esotericsoftware.kryo.KryoSerializable
- Enclosing class:
- LJ_GDX_ai.Path_ER
public static class LJ_GDX_ai.Path_ER.LIP
extends InterfaceProxy
implements com.badlogic.gdx.ai.steer.utils.Path
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.badlogic.gdx.ai.steer.utils.Path
com.badlogic.gdx.ai.steer.utils.Path.PathParam
-
Method Summary
Modifier and TypeMethodDescriptionfloat
calculateDistance
(com.badlogic.gdx.math.Vector p1, com.badlogic.gdx.ai.steer.utils.Path.PathParam p2) Maps the given position to the nearest point along the path using the path parameter to ensure coherence and returns the distance of that nearest point from the start of the path.void
calculateTargetPosition
(com.badlogic.gdx.math.Vector p1, com.badlogic.gdx.ai.steer.utils.Path.PathParam p2, float p3) Calculates the target position on the path based on its distance from the start and the path parameter.com.badlogic.gdx.ai.steer.utils.Path.PathParam
Returns a new instance of the path parameter.com.badlogic.gdx.math.Vector
Returns the last point of this path.float
Returns the length of this path.com.badlogic.gdx.math.Vector
Returns the first point of this path.boolean
isOpen()
Returnstrue
if this path is open;false
otherwise.Methods inherited from class com.prineside.luaj.mapping.InterfaceProxy
getLuaObj, read, write
-
Method Details
-
calculateDistance
public float calculateDistance(com.badlogic.gdx.math.Vector p1, com.badlogic.gdx.ai.steer.utils.Path.PathParam p2) Description copied from interface:com.badlogic.gdx.ai.steer.utils.Path
Maps the given position to the nearest point along the path using the path parameter to ensure coherence and returns the distance of that nearest point from the start of the path.- Specified by:
calculateDistance
in interfacecom.badlogic.gdx.ai.steer.utils.Path
- Parameters:
p1
- a location in game spacep2
- the path parameter- Returns:
- the distance of the nearest point along the path from the start of the path itself.
-
calculateTargetPosition
public void calculateTargetPosition(com.badlogic.gdx.math.Vector p1, com.badlogic.gdx.ai.steer.utils.Path.PathParam p2, float p3) Description copied from interface:com.badlogic.gdx.ai.steer.utils.Path
Calculates the target position on the path based on its distance from the start and the path parameter.- Specified by:
calculateTargetPosition
in interfacecom.badlogic.gdx.ai.steer.utils.Path
- Parameters:
p1
- the target position to calculatep2
- the path parameterp3
- the distance of the target position from the start of the path
-
createParam
public com.badlogic.gdx.ai.steer.utils.Path.PathParam createParam()Description copied from interface:com.badlogic.gdx.ai.steer.utils.Path
Returns a new instance of the path parameter.- Specified by:
createParam
in interfacecom.badlogic.gdx.ai.steer.utils.Path
-
getEndPoint
public com.badlogic.gdx.math.Vector getEndPoint()Description copied from interface:com.badlogic.gdx.ai.steer.utils.Path
Returns the last point of this path.- Specified by:
getEndPoint
in interfacecom.badlogic.gdx.ai.steer.utils.Path
-
getLength
public float getLength()Description copied from interface:com.badlogic.gdx.ai.steer.utils.Path
Returns the length of this path.- Specified by:
getLength
in interfacecom.badlogic.gdx.ai.steer.utils.Path
-
getStartPoint
public com.badlogic.gdx.math.Vector getStartPoint()Description copied from interface:com.badlogic.gdx.ai.steer.utils.Path
Returns the first point of this path.- Specified by:
getStartPoint
in interfacecom.badlogic.gdx.ai.steer.utils.Path
-
isOpen
public boolean isOpen()Description copied from interface:com.badlogic.gdx.ai.steer.utils.Path
Returnstrue
if this path is open;false
otherwise.- Specified by:
isOpen
in interfacecom.badlogic.gdx.ai.steer.utils.Path
-