public class BulletJointDebugControl extends AbstractPhysicsDebugControl
This class is shared between JBullet and Native Bullet.
| Modifier and Type | Field and Description | 
|---|---|
| protected Transform | a | 
| protected Arrow | arrowA | 
| protected Arrow | arrowB | 
| protected Transform | b | 
| protected PhysicsJoint | body | 
| protected Geometry | geomA | 
| protected Geometry | geomB | 
| protected Vector3f | offA | 
| protected Vector3f | offB | 
debugAppStateenabled, spatial| Constructor and Description | 
|---|
| BulletJointDebugControl(BulletDebugAppState debugAppState,
                       PhysicsJoint body)Instantiate an enabled control to visualize the specified joint. | 
| 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 PhysicsJoint body
protected final Geometry geomA
protected final Arrow arrowA
protected final Geometry geomB
protected final Arrow arrowB
protected final Transform a
protected final Transform b
protected final Vector3f offA
protected final Vector3f offB
public BulletJointDebugControl(BulletDebugAppState debugAppState, PhysicsJoint body)
debugAppState - which app state (not null, alias created)body - the joint 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)