Package com.jme3.bullet.debug
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
An AppState to manage debug visualization of a PhysicsSoftSpace.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.jme3.bullet.debug.BulletDebugAppState
BulletDebugAppState.DebugAppStateFilter
-
Field Summary
Fields inherited from class com.jme3.bullet.debug.BulletDebugAppState
enableChildColoring, logger
-
Constructor Summary
ConstructorDescriptionSoftDebugAppState
(DebugConfiguration config) Instantiate an AppState with the specified configuration. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Alter which soft-body clusters are visualized.protected void
setupMaterials
(com.jme3.asset.AssetManager am) Initialize the materials.void
Alter which wind velocities are included in the debug visualization.protected void
Synchronize the collision-shape debug controls and axis visualizers with the collision objects in the PhysicsSpace.protected void
Synchronize the velocity visualizers with the collision objects in the PhysicsSpace.Methods inherited from class com.jme3.bullet.debug.BulletDebugAppState
attachChild, cleanup, createWireMaterial, getPcoMap, getRootNode, initialize, onDisable, onEnable, render, setAngularVelocityFilter, setBoundingBoxFilter, setFilter, setGravityVectorFilter, setJointLineWidth, setSweptSphereFilter, setVelocityVectorFilter, update, updateAxes
Methods inherited from class com.jme3.app.state.BaseAppState
cleanup, getApplication, getId, getState, getState, getState, getState, getStateManager, initialize, isEnabled, isInitialized, postRender, setEnabled, setId, stateAttached, stateDetached
-
Field Details
-
logger2
message logger for this class
-
-
Constructor Details
-
SoftDebugAppState
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
Alter which soft-body clusters are visualized. For internal use only.- Parameters:
filter
- the desired filter, or null to visualize no clusters
-
setWindVelocityFilter
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 classBulletDebugAppState
- 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 classBulletDebugAppState
-
updateShapes
protected void updateShapes()Synchronize the collision-shape debug controls and axis visualizers with the collision objects in the PhysicsSpace.- Overrides:
updateShapes
in classBulletDebugAppState
-