Package com.jme3.bullet.debug
Class BulletJointDebugControl
java.lang.Object
com.jme3.scene.control.AbstractControl
com.jme3.bullet.debug.AbstractPhysicsDebugControl
com.jme3.bullet.debug.BulletJointDebugControl
- All Implemented Interfaces:
Savable
,Control
,JmeCloneable
,Cloneable
A physics-debug control used to visualize a PhysicsJoint.
This class is shared between JBullet and Native Bullet.
-
Field Summary
Modifier and TypeFieldDescriptionprotected final Transform
protected final Arrow
protected final Arrow
protected final Transform
protected final PhysicsJoint
protected final Geometry
protected final Geometry
protected final Vector3f
protected final Vector3f
Fields inherited from class com.jme3.bullet.debug.AbstractPhysicsDebugControl
debugAppState
Fields inherited from class com.jme3.scene.control.AbstractControl
enabled, spatial
-
Constructor Summary
ConstructorDescriptionBulletJointDebugControl
(BulletDebugAppState debugAppState, PhysicsJoint body) Instantiate an enabled control to visualize the specified joint. -
Method Summary
Modifier and TypeMethodDescriptionprotected 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.Methods inherited from class com.jme3.bullet.debug.AbstractPhysicsDebugControl
applyPhysicsTransform, applyPhysicsTransform
Methods inherited from class com.jme3.scene.control.AbstractControl
cloneFields, cloneForSpatial, getSpatial, isEnabled, jmeClone, read, render, setEnabled, update, write
-
Field Details
-
body
-
geomA
-
arrowA
-
geomB
-
arrowB
-
a
-
b
-
offA
-
offB
-
-
Constructor Details
-
BulletJointDebugControl
Instantiate an enabled control to visualize the specified joint.- Parameters:
debugAppState
- which app state (not null, alias created)body
- the joint to visualize (not null, alias created)
-
-
Method Details
-
setSpatial
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:
setSpatial
in interfaceControl
- Overrides:
setSpatial
in classAbstractControl
- Parameters:
spatial
- the spatial to control (or null)
-
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:
controlUpdate
in classAbstractPhysicsDebugControl
- Parameters:
tpf
- the time interval between frames (in seconds, ≥0)
-
controlRender
Render 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:
controlRender
in classAbstractControl
- Parameters:
rm
- the render manager (not null)vp
- the view port to render (not null)
-