Package com.jme3.bullet.debug
Class DebugTools
java.lang.Object
com.jme3.bullet.debug.DebugTools
Debugging aids.
 
This class is shared between JBullet and Native Bullet.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionmesh for the blue arrowgeometry for the blue arrowmesh for the green arrowgeometry for the green arrowmesh for the magenta arrowgeometry for the magenta arrowmesh for the pink arrowgeometry for the pink arrowmesh for the red arrowgeometry for the red arrowmesh for the yellow arrowgeometry for the yellow arrowunshaded blue materialunshaded green materialunshaded magenta materialunshaded pink materialunshaded red materialunshaded yellow materialnode for attaching debug geometriesprotected final AssetManagerprotected static final Vector3flocal copy ofVector3f.UNIT_Xprotected static final Vector3flocal copy ofVector3f.UNIT_XYZprotected static final Vector3flocal copy ofVector3f.UNIT_Yprotected static final Vector3flocal copy ofVector3f.UNIT_Zprotected static final Vector3flocal copy ofVector3f.ZERO
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidsetBlueArrow(Vector3f location, Vector3f extent) Alter the location and extent of the blue arrow.voidsetGreenArrow(Vector3f location, Vector3f extent) Alter the location and extent of the green arrow.voidsetMagentaArrow(Vector3f location, Vector3f extent) Alter the location and extent of the magenta arrow.voidsetPinkArrow(Vector3f location, Vector3f extent) Alter the location and extent of the pink arrow.voidsetRedArrow(Vector3f location, Vector3f extent) Alter the location and extent of the red arrow.protected voidAttach all the debug geometries to the debug node.protected voidInitialize all the DebugTools materials.voidsetYellowArrow(Vector3f location, Vector3f extent) Alter the location and extent of the yellow arrow.voidshow(RenderManager rm, ViewPort vp) Render all the debug geometries to the specified view port.
- 
Field Details- 
manager
- 
DEBUG_BLUEunshaded blue material
- 
DEBUG_REDunshaded red material
- 
DEBUG_GREENunshaded green material
- 
DEBUG_YELLOWunshaded yellow material
- 
DEBUG_MAGENTAunshaded magenta material
- 
DEBUG_PINKunshaded pink material
- 
debugNodenode for attaching debug geometries
- 
arrowBluemesh for the blue arrow
- 
arrowBlueGeomgeometry for the blue arrow
- 
arrowGreenmesh for the green arrow
- 
arrowGreenGeomgeometry for the green arrow
- 
arrowRedmesh for the red arrow
- 
arrowRedGeomgeometry for the red arrow
- 
arrowMagentamesh for the magenta arrow
- 
arrowMagentaGeomgeometry for the magenta arrow
- 
arrowYellowmesh for the yellow arrow
- 
arrowYellowGeomgeometry for the yellow arrow
- 
arrowPinkmesh for the pink arrow
- 
arrowPinkGeomgeometry for the pink arrow
- 
UNIT_X_CHECKlocal copy ofVector3f.UNIT_X
- 
UNIT_Y_CHECKlocal copy ofVector3f.UNIT_Y
- 
UNIT_Z_CHECKlocal copy ofVector3f.UNIT_Z
- 
UNIT_XYZ_CHECKlocal copy ofVector3f.UNIT_XYZ
- 
ZERO_CHECKlocal copy ofVector3f.ZERO
 
- 
- 
Constructor Details- 
DebugToolsInstantiate a set of debug tools.- Parameters:
- manager- for loading assets (not null, alias created)
 
 
- 
- 
Method Details- 
showRender all the debug geometries to the specified view port.- Parameters:
- rm- the render manager (not null)
- vp- the view port (not null)
 
- 
setBlueArrowAlter the location and extent of the blue arrow.- Parameters:
- location- the coordinates of the tail (not null, unaffected)
- extent- the offset of the tip from the tail (not null, unaffected)
 
- 
setGreenArrowAlter the location and extent of the green arrow.- Parameters:
- location- the coordinates of the tail (not null, unaffected)
- extent- the offset of the tip from the tail (not null, unaffected)
 
- 
setRedArrowAlter the location and extent of the red arrow.- Parameters:
- location- the coordinates of the tail (not null, unaffected)
- extent- the offset of the tip from the tail (not null, unaffected)
 
- 
setMagentaArrowAlter the location and extent of the magenta arrow.- Parameters:
- location- the coordinates of the tail (not null, unaffected)
- extent- the offset of the tip from the tail (not null, unaffected)
 
- 
setYellowArrowAlter the location and extent of the yellow arrow.- Parameters:
- location- the coordinates of the tail (not null, unaffected)
- extent- the offset of the tip from the tail (not null, unaffected)
 
- 
setPinkArrowAlter the location and extent of the pink arrow.- Parameters:
- location- the coordinates of the tail (not null, unaffected)
- extent- the offset of the tip from the tail (not null, unaffected)
 
- 
setupDebugNodeprotected void setupDebugNode()Attach all the debug geometries to the debug node.
- 
setupMaterialsprotected void setupMaterials()Initialize all the DebugTools materials.
 
-