Class BulletDebugAppState

java.lang.Object
com.jme3.app.state.AbstractAppState
com.jme3.bullet.debug.BulletDebugAppState
All Implemented Interfaces:
AppState

public class BulletDebugAppState extends AbstractAppState
An app state to manage a debug visualization of a physics space.

This class is shared between JBullet and Native Bullet.

  • Field Details

  • Constructor Details

    • BulletDebugAppState

      public BulletDebugAppState(PhysicsSpace space)
      Instantiate an app state to visualize the specified space. This constructor should be invoked only by BulletAppState.
      Parameters:
      space - physics space to visualize (not null, alias created)
  • Method Details

    • getNewDebugTools

      public DebugTools getNewDebugTools()
    • setFilter

      public void setFilter(BulletDebugAppState.DebugAppStateFilter filter)
      Alter which objects are visualized.
      Parameters:
      filter - the desired filter, or null to visualize all objects
    • initialize

      public void initialize(AppStateManager stateManager, Application app)
      Initialize this state prior to its 1st update. Should be invoked only by a subclass or by the AppStateManager.
      Specified by:
      initialize in interface AppState
      Overrides:
      initialize in class AbstractAppState
      Parameters:
      stateManager - the manager for this state (not null)
      app - the application which owns this state (not null)
    • cleanup

      public void cleanup()
      Transition this state from terminating to detached. Should be invoked only by a subclass or by the AppStateManager. Invoked once for each time initialize(com.jme3.app.state.AppStateManager, com.jme3.app.Application) is invoked.
      Specified by:
      cleanup in interface AppState
      Overrides:
      cleanup in class AbstractAppState
    • update

      public void update(float tpf)
      Update this state prior to rendering. Should be invoked only by a subclass or by the AppStateManager. Invoked once per frame, provided the state is attached and enabled.
      Specified by:
      update in interface AppState
      Overrides:
      update in class AbstractAppState
      Parameters:
      tpf - the time interval between frames (in seconds, ≥0)
    • render

      public void render(RenderManager rm)
      Render this state. Should be invoked only by a subclass or by the AppStateManager. Invoked once per frame, provided the state is attached and enabled.
      Specified by:
      render in interface AppState
      Overrides:
      render in class AbstractAppState
      Parameters:
      rm - the render manager (not null)