Package com.jme3.bullet
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
An AppState to manage a single MultiBodySpace.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.jme3.bullet.BulletAppState
BulletAppState.ThreadingType
-
Field Summary
Fields inherited from class com.jme3.bullet.BulletAppState
logger
Fields inherited from class com.jme3.app.state.AbstractAppState
initialized
-
Constructor Summary
ConstructorDescriptionInstantiate an enabled AppState to manage a space with DBVT broadphase collision detection. -
Method Summary
Modifier and TypeMethodDescriptionprotected BulletDebugAppState
Create the configured debug-visualization app state.protected PhysicsSpace
createPhysicsSpace
(com.jme3.math.Vector3f min, com.jme3.math.Vector3f max, PhysicsSpace.BroadphaseType broadphaseType) Create the configured MultiBodySpace.Access the space managed by this state.Methods inherited from class com.jme3.bullet.BulletAppState
cleanup, countSolvers, debugAxisLength, debugAxisLineWidth, getBroadphaseType, getCollisionConfiguration, getDebugAppState, getDebugCamera, getDebugConfiguration, getPhysicsSpace, getSolverType, getSpeed, getThreadingType, initialize, isDebugEnabled, isRunning, physicsTick, postRender, prePhysicsTick, render, setBroadphaseType, setCollisionConfiguration, setDebugAngularVelocityFilter, setDebugAxisLength, setDebugAxisLineWidth, setDebugBoundingBoxFilter, setDebugCamera, setDebugEnabled, setDebugFilter, setDebugGravityVectorFilter, setDebugInitListener, setDebugJointLineWidth, setDebugShadowMode, setDebugSweptSphereFilter, setDebugVelocityVectorFilter, setDebugViewPorts, setNumSolvers, setPhysicsSpace, setRunning, setSolverType, setSpeed, setThreadingType, setTransformSpatial, setWorldMax, setWorldMin, startPhysics, startPhysicsOnExecutor, stateAttached, stopPhysics, update, worldMax, worldMin
Methods inherited from class com.jme3.app.state.AbstractAppState
getId, isEnabled, isInitialized, setEnabled, setId, stateDetached
-
Field Details
-
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
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
Create the configured debug-visualization app state.- Overrides:
createDebugAppState
in classBulletAppState
- 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 classBulletAppState
- 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)
-