public class BulletGhostObjectDebugControl extends AbstractPhysicsDebugControl
This class is shared between JBullet and Native Bullet.
| Modifier and Type | Field and Description |
|---|---|
protected PhysicsGhostObject |
body
ghost object to visualize (not null)
|
protected Spatial |
geom
geometry to visualize myShape (not null)
|
protected Vector3f |
location
temporary storage for physics location
|
protected CollisionShape |
myShape
shape for which geom was generated (not null)
|
protected Quaternion |
rotation
temporary storage for physics rotation
|
debugAppStateenabled, spatial| Constructor and Description |
|---|
BulletGhostObjectDebugControl(BulletDebugAppState debugAppState,
PhysicsGhostObject body)
Instantiate an enabled control to visualize the specified ghost object.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
controlRender(RenderManager rm,
ViewPort vp)
Render this control.
|
protected void |
controlUpdate(float tpf)
Update this control.
|
void |
setSpatial(Spatial spatial)
Alter which spatial is controlled.
|
applyPhysicsTransform, applyPhysicsTransformcloneFields, cloneForSpatial, getSpatial, isEnabled, jmeClone, read, render, setEnabled, update, writeprotected final PhysicsGhostObject body
protected final Vector3f location
protected final Quaternion rotation
protected CollisionShape myShape
protected Spatial geom
public BulletGhostObjectDebugControl(BulletDebugAppState debugAppState, PhysicsGhostObject body)
debugAppState - which app state (not null, alias created)body - which object to visualize (not null, alias created)public void setSpatial(Spatial spatial)
setSpatial in interface ControlsetSpatial in class AbstractControlspatial - the spatial to control (or null)protected void controlUpdate(float tpf)
controlUpdate in class AbstractPhysicsDebugControltpf - the time interval between frames (in seconds, ≥0)protected void controlRender(RenderManager rm, ViewPort vp)
controlRender in class AbstractControlrm - the render manager (not null)vp - the view port to render (not null)