Class MultiBodyAppState

java.lang.Object
com.jme3.app.state.AbstractAppState
com.jme3.bullet.BulletAppState
com.jme3.bullet.MultiBodyAppState
All Implemented Interfaces:
com.jme3.app.state.AppState, PhysicsTickListener

public class MultiBodyAppState extends BulletAppState
An AppState to manage a single MultiBodySpace.
  • Field Details

    • logger2

      public static final Logger logger2
      message logger for this class
  • Constructor Details

    • MultiBodyAppState

      public MultiBodyAppState()
      Instantiate an enabled AppState to manage a space with DBVT broadphase collision detection.

      This no-arg constructor was made explicit to avoid javadoc warnings from JDK 18+.

  • Method Details

    • getMultiBodySpace

      public MultiBodySpace getMultiBodySpace()
      Access the space managed by this state. Normally there is none until the state is attached.
      Returns:
      the pre-existing instance, or null if no simulation running
    • createDebugAppState

      protected BulletDebugAppState createDebugAppState()
      Create the configured debug-visualization app state.
      Overrides:
      createDebugAppState in class BulletAppState
      Returns:
      a new instance (not null)
    • createPhysicsSpace

      protected PhysicsSpace createPhysicsSpace(com.jme3.math.Vector3f min, com.jme3.math.Vector3f max, PhysicsSpace.BroadphaseType broadphaseType)
      Create the configured MultiBodySpace.
      Overrides:
      createPhysicsSpace in class BulletAppState
      Parameters:
      min - the minimum coordinate value for each axis (not null, unaffected)
      max - the maximum coordinate value for each axis (not null, unaffected)
      broadphaseType - which broadphase accelerator to use (not null)
      Returns:
      a new instance (not null)