Class SoftDebugAppState

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

public class SoftDebugAppState extends BulletDebugAppState
An AppState to manage debug visualization of a PhysicsSoftSpace.
  • Field Details

    • logger2

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

    • SoftDebugAppState

      public SoftDebugAppState(DebugConfiguration config)
      Instantiate an AppState with the specified configuration. This constructor should be invoked only by BulletSoftBodyAppState.
      Parameters:
      config - the desired configuration (not null, alias created)
  • Method Details

    • setClusterFilter

      public void setClusterFilter(BulletDebugAppState.DebugAppStateFilter filter)
      Alter which soft-body clusters are visualized. For internal use only.
      Parameters:
      filter - the desired filter, or null to visualize no clusters
    • setWindVelocityFilter

      public void setWindVelocityFilter(BulletDebugAppState.DebugAppStateFilter filter)
      Alter which wind velocities are included in the debug visualization.
      Parameters:
      filter - the filter to use (alias created) or null to visualize no wind velocities (default=null)
    • setupMaterials

      protected void setupMaterials(com.jme3.asset.AssetManager am)
      Initialize the materials.
      Overrides:
      setupMaterials in class BulletDebugAppState
      Parameters:
      am - the application's AssetManager (not null)
    • updateVelocities

      protected void updateVelocities()
      Synchronize the velocity visualizers with the collision objects in the PhysicsSpace.
      Overrides:
      updateVelocities in class BulletDebugAppState
    • updateShapes

      protected void updateShapes()
      Synchronize the collision-shape debug controls and axis visualizers with the collision objects in the PhysicsSpace.
      Overrides:
      updateShapes in class BulletDebugAppState