Package com.jme3.bullet.debug
Class BulletVehicleDebugControl
java.lang.Object
com.jme3.scene.control.AbstractControl
com.jme3.bullet.debug.AbstractPhysicsDebugControl
com.jme3.bullet.debug.BulletVehicleDebugControl
- All Implemented Interfaces:
com.jme3.export.Savable,com.jme3.scene.control.Control,com.jme3.util.clone.JmeCloneable,Cloneable
A physics-debug control used to visualize a PhysicsVehicle.
-
Field Summary
FieldsFields inherited from class com.jme3.bullet.debug.AbstractPhysicsDebugControl
debugAppStateFields inherited from class com.jme3.scene.control.AbstractControl
enabled, spatial -
Constructor Summary
ConstructorsConstructorDescriptionBulletVehicleDebugControl(BulletDebugAppState debugAppState, PhysicsVehicle ve) Instantiate an enabled control to visualize the specified vehicle. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcontrolUpdate(float tpf) Update this control.voidsetSpatial(com.jme3.scene.Spatial spatial) Alter which Spatial is controlled.Methods inherited from class com.jme3.bullet.debug.AbstractPhysicsDebugControl
applyPhysicsTransform, cloneFields, controlRender, jmeClone, read, writeMethods inherited from class com.jme3.scene.control.AbstractControl
cloneForSpatial, getSpatial, isEnabled, render, setEnabled, update
-
Field Details
-
logger
message logger for this class
-
-
Constructor Details
-
BulletVehicleDebugControl
Instantiate an enabled control to visualize the specified vehicle.- Parameters:
debugAppState- which app state (not null, alias created)ve- which vehicle to visualize (not null, alias created)
-
-
Method Details
-
controlUpdate
protected void controlUpdate(float tpf) Update this control. Invoked once per frame during the logical-state update, provided the control is enabled and added to a scene. Should be invoked only by a subclass or by AbstractControl.- Specified by:
controlUpdatein classcom.jme3.scene.control.AbstractControl- Parameters:
tpf- the time interval between frames (in seconds, ≥0)
-
setSpatial
public void setSpatial(com.jme3.scene.Spatial spatial) Alter which Spatial is controlled. Invoked when the Control is added to or removed from a Spatial. Should be invoked only by a subclass or from Spatial. Do not invoke directly from user code.- Specified by:
setSpatialin interfacecom.jme3.scene.control.Control- Overrides:
setSpatialin classcom.jme3.scene.control.AbstractControl- Parameters:
spatial- the Spatial to control (or null)
-