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
  • 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 interface com.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 interface com.badlogic.gdx.ai.steer.behaviors.Jump.JumpCallback
      Parameters:
      p1 - the velocity to set along the vertical axis to achieve the jump
      p2 - the duration of the jump