Class CustomBodyActivationListener

All Implemented Interfaces:
ConstJoltPhysicsObject, AutoCloseable, Comparable<ConstJoltPhysicsObject>

public abstract class CustomBodyActivationListener extends BodyActivationListener
A customizable BodyActivationListener.
  • Constructor Details

    • CustomBodyActivationListener

      public CustomBodyActivationListener()
      Instantiate a customizable listener.
  • Method Details

    • onBodyActivated

      public abstract void onBodyActivated(long idVa, long bodyUserData)
      Callback invoked (by native code) each time a body is activated.
      Parameters:
      idVa - the virtual address of the body's ID (not zero)
      bodyUserData - the body's user data
    • onBodyDeactivated

      public abstract void onBodyDeactivated(long idVa, long bodyUserData)
      Callback invoked (by native code) each time a body is deactivated.
      Parameters:
      idVa - the virtual address of the body's ID (not zero)
      bodyUserData - the body's user data