public abstract class AbstractPhysicsDebugControl
extends com.jme3.scene.control.AbstractControl
This class is shared between JBullet and Native Bullet.
| Modifier and Type | Field and Description |
|---|---|
protected BulletDebugAppState |
debugAppState
the app state that this control serves
|
| Constructor and Description |
|---|
AbstractPhysicsDebugControl(BulletDebugAppState debugAppState)
Instantiate an enabled control to serve the specified debug app state.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
applyPhysicsTransform(com.jme3.math.Vector3f worldLocation,
com.jme3.math.Quaternion worldRotation)
Apply the specified location and orientation to the controlled spatial.
|
protected void |
applyPhysicsTransform(com.jme3.math.Vector3f worldLocation,
com.jme3.math.Quaternion worldRotation,
com.jme3.scene.Spatial spatial)
Apply the specified location and orientation to the specified spatial.
|
protected abstract void |
controlUpdate(float tpf)
This is called on the physics thread for debug controls
|
protected final BulletDebugAppState debugAppState
public AbstractPhysicsDebugControl(BulletDebugAppState debugAppState)
debugAppState - which app state (not null, alias created)protected abstract void controlUpdate(float tpf)
controlUpdate in class com.jme3.scene.control.AbstractControlprotected void applyPhysicsTransform(com.jme3.math.Vector3f worldLocation,
com.jme3.math.Quaternion worldRotation)
worldLocation - location vector (in physics-space coordinates, not
null, unaffected)worldRotation - orientation (in physics-space coordinates, not null,
unaffected)protected void applyPhysicsTransform(com.jme3.math.Vector3f worldLocation,
com.jme3.math.Quaternion worldRotation,
com.jme3.scene.Spatial spatial)
worldLocation - location vector (in physics-space coordinates, not
null, unaffected)worldRotation - orientation (in physics-space coordinates, not null,
unaffected)spatial - where to apply (may be null)