public class BulletVehicleDebugControl extends AbstractPhysicsDebugControl
This class is shared between JBullet and Native Bullet.
| Modifier and Type | Field and Description |
|---|---|
protected PhysicsVehicle |
body |
protected com.jme3.math.Vector3f |
location |
protected com.jme3.math.Quaternion |
rotation |
protected com.jme3.scene.Node |
suspensionNode |
debugAppState| Constructor and Description |
|---|
BulletVehicleDebugControl(BulletDebugAppState debugAppState,
PhysicsVehicle body)
Instantiate an enabled control to visualize the specified vehicle.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
controlRender(com.jme3.renderer.RenderManager rm,
com.jme3.renderer.ViewPort vp)
Render this control.
|
protected void |
controlUpdate(float tpf)
Update this control.
|
void |
setSpatial(com.jme3.scene.Spatial spatial)
Alter which spatial is controlled.
|
applyPhysicsTransform, applyPhysicsTransformprotected final PhysicsVehicle body
protected final com.jme3.scene.Node suspensionNode
protected final com.jme3.math.Vector3f location
protected final com.jme3.math.Quaternion rotation
public BulletVehicleDebugControl(BulletDebugAppState debugAppState, PhysicsVehicle body)
debugAppState - which app state (not null, alias created)body - which vehicle to visualize (not null, alias created)public void setSpatial(com.jme3.scene.Spatial spatial)
setSpatial in interface com.jme3.scene.control.ControlsetSpatial in class com.jme3.scene.control.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(com.jme3.renderer.RenderManager rm,
com.jme3.renderer.ViewPort vp)
controlRender in class com.jme3.scene.control.AbstractControlrm - the render manager (not null)vp - the view port to render (not null)