Package com.prineside.luaj.mapping.parts
Class LJ_GDX_ai.GravityComponentHandler_DT.LIP
java.lang.Object
com.prineside.luaj.mapping.InterfaceProxy
com.prineside.luaj.mapping.parts.LJ_GDX_ai.GravityComponentHandler_DT.LIP
- All Implemented Interfaces:
com.badlogic.gdx.ai.steer.behaviors.Jump.GravityComponentHandler
,com.esotericsoftware.kryo.KryoSerializable
- Enclosing class:
- LJ_GDX_ai.GravityComponentHandler_DT
public static class LJ_GDX_ai.GravityComponentHandler_DT.LIP
extends InterfaceProxy
implements com.badlogic.gdx.ai.steer.behaviors.Jump.GravityComponentHandler
-
Method Summary
Modifier and TypeMethodDescriptionfloat
getComponent
(com.badlogic.gdx.math.Vector p1) Returns the component of the given vector along which the gravity operates.void
setComponent
(com.badlogic.gdx.math.Vector p1, float p2) Sets the component of the given vector along which the gravity operates.Methods inherited from class com.prineside.luaj.mapping.InterfaceProxy
getLuaObj, read, write
-
Method Details
-
getComponent
public float getComponent(com.badlogic.gdx.math.Vector p1) Description copied from interface:com.badlogic.gdx.ai.steer.behaviors.Jump.GravityComponentHandler
Returns the component of the given vector along which the gravity operates.Assuming a 3D coordinate system where the gravity is acting along the y-axis, this method will be implemented as follows:
public float getComponent (Vector3 vector) { return vector.y; }
Of course, the equivalent 2D implementation will use Vector2 instead of Vector3.- Specified by:
getComponent
in interfacecom.badlogic.gdx.ai.steer.behaviors.Jump.GravityComponentHandler
- Parameters:
p1
- the vector- Returns:
- the value of the component affected by gravity.
-
setComponent
public void setComponent(com.badlogic.gdx.math.Vector p1, float p2) Description copied from interface:com.badlogic.gdx.ai.steer.behaviors.Jump.GravityComponentHandler
Sets the component of the given vector along which the gravity operates.Assuming a 3D coordinate system where the gravity is acting along the y-axis, this method will be implemented as follows:
public void setComponent (Vector3 vector, float value) { vector.y = value; }
Of course, the equivalent 2D implementation will use Vector2 instead of Vector3.- Specified by:
setComponent
in interfacecom.badlogic.gdx.ai.steer.behaviors.Jump.GravityComponentHandler
- Parameters:
p1
- the vectorp2
- the value of the component affected by gravity
-