Package com.prineside.luaj.mapping.parts
Class LJ_GDX_ai.JumpCallback_DU.LIP
java.lang.Object
com.prineside.luaj.mapping.InterfaceProxy
com.prineside.luaj.mapping.parts.LJ_GDX_ai.JumpCallback_DU.LIP
- All Implemented Interfaces:
com.badlogic.gdx.ai.steer.behaviors.Jump.JumpCallback
,com.esotericsoftware.kryo.KryoSerializable
- Enclosing class:
- LJ_GDX_ai.JumpCallback_DU
public static class LJ_GDX_ai.JumpCallback_DU.LIP
extends InterfaceProxy
implements com.badlogic.gdx.ai.steer.behaviors.Jump.JumpCallback
-
Field Summary
Fields inherited from class com.prineside.luaj.mapping.InterfaceProxy
luaObj
-
Method Summary
Modifier and TypeMethodDescriptionvoid
reportAchievability
(boolean p1) Reports whether the jump is achievable or not.void
takeoff
(float p1, float p2) This method is called to notify that both the position and velocity of the character are good enough to jump.Methods inherited from class com.prineside.luaj.mapping.InterfaceProxy
getLuaObj, read, write
-
Method Details
-
reportAchievability
public void reportAchievability(boolean p1) Description copied from interface:com.badlogic.gdx.ai.steer.behaviors.Jump.JumpCallback
Reports whether the jump is achievable or not.A jump is not achievable when the character's maximum linear velocity is not enough, in which case the jump behavior won't produce any acceleration; you might want to use pathfinding to plan a new path.
If the jump is achievable the run up phase will start immediately and the character will try to match the target velocity toward the takeoff point. This is the right moment to start the run up animation, if needed.
- Specified by:
reportAchievability
in interfacecom.badlogic.gdx.ai.steer.behaviors.Jump.JumpCallback
- Parameters:
p1
- whether the jump is achievable or not.
-
takeoff
public void takeoff(float p1, float p2) Description copied from interface:com.badlogic.gdx.ai.steer.behaviors.Jump.JumpCallback
This method is called to notify that both the position and velocity of the character are good enough to jump.- Specified by:
takeoff
in interfacecom.badlogic.gdx.ai.steer.behaviors.Jump.JumpCallback
- Parameters:
p1
- the velocity to set along the vertical axis to achieve the jumpp2
- the duration of the jump
-