Package com.jme3.bullet.debug
Class BulletGhostObjectDebugControl
java.lang.Object
com.jme3.scene.control.AbstractControl
com.jme3.bullet.debug.AbstractPhysicsDebugControl
com.jme3.bullet.debug.BulletGhostObjectDebugControl
- All Implemented Interfaces:
- Savable,- Control,- JmeCloneable,- Cloneable
A physics-debug control used to visualize a PhysicsGhostObject.
 
This class is shared between JBullet and Native Bullet.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected final PhysicsGhostObjectghost object to visualize (not null)protected Spatialgeometry to visualize myShape (not null)protected final Vector3ftemporary storage for physics locationprotected CollisionShapeshape for which geom was generated (not null)protected final Quaterniontemporary storage for physics rotationFields inherited from class com.jme3.bullet.debug.AbstractPhysicsDebugControldebugAppStateFields inherited from class com.jme3.scene.control.AbstractControlenabled, spatial
- 
Constructor SummaryConstructorsConstructorDescriptionBulletGhostObjectDebugControl(BulletDebugAppState debugAppState, PhysicsGhostObject body) Instantiate an enabled control to visualize the specified ghost object.
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidcontrolRender(RenderManager rm, ViewPort vp) Render this control.protected voidcontrolUpdate(float tpf) Update this control.voidsetSpatial(Spatial spatial) Alter which spatial is controlled.Methods inherited from class com.jme3.bullet.debug.AbstractPhysicsDebugControlapplyPhysicsTransform, applyPhysicsTransformMethods inherited from class com.jme3.scene.control.AbstractControlcloneFields, cloneForSpatial, getSpatial, isEnabled, jmeClone, read, render, setEnabled, update, write
- 
Field Details- 
bodyghost object to visualize (not null)
- 
locationtemporary storage for physics location
- 
rotationtemporary storage for physics rotation
- 
myShapeshape for which geom was generated (not null)
- 
geomgeometry to visualize myShape (not null)
 
- 
- 
Constructor Details- 
BulletGhostObjectDebugControlInstantiate an enabled control to visualize the specified ghost object.- Parameters:
- debugAppState- which app state (not null, alias created)
- body- which object to visualize (not null, alias created)
 
 
- 
- 
Method Details- 
setSpatialAlter 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 interface- Control
- Overrides:
- setSpatialin class- AbstractControl
- Parameters:
- spatial- the spatial to control (or null)
 
- 
controlUpdateprotected 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 class- AbstractPhysicsDebugControl
- Parameters:
- tpf- the time interval between frames (in seconds, ≥0)
 
- 
controlRenderRender this control. Invoked once per frame, provided the control is enabled and added to a scene. Should be invoked only by a subclass or by AbstractControl.- Specified by:
- controlRenderin class- AbstractControl
- Parameters:
- rm- the render manager (not null)
- vp- the view port to render (not null)
 
 
-