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 Summary
Modifier 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 AssetManager
protected static final Vector3f
local copy ofVector3f.UNIT_X
protected static final Vector3f
local copy ofVector3f.UNIT_XYZ
protected static final Vector3f
local copy ofVector3f.UNIT_Y
protected static final Vector3f
local copy ofVector3f.UNIT_Z
protected static final Vector3f
local copy ofVector3f.ZERO
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setBlueArrow
(Vector3f location, Vector3f extent) Alter the location and extent of the blue arrow.void
setGreenArrow
(Vector3f location, Vector3f extent) Alter the location and extent of the green arrow.void
setMagentaArrow
(Vector3f location, Vector3f extent) Alter the location and extent of the magenta arrow.void
setPinkArrow
(Vector3f location, Vector3f extent) Alter the location and extent of the pink arrow.void
setRedArrow
(Vector3f location, Vector3f extent) Alter the location and extent of the red arrow.protected void
Attach all the debug geometries to the debug node.protected void
Initialize all the DebugTools materials.void
setYellowArrow
(Vector3f location, Vector3f extent) Alter the location and extent of the yellow arrow.void
show
(RenderManager rm, ViewPort vp) Render all the debug geometries to the specified view port.
-
Field Details
-
manager
-
DEBUG_BLUE
unshaded blue material -
DEBUG_RED
unshaded red material -
DEBUG_GREEN
unshaded green material -
DEBUG_YELLOW
unshaded yellow material -
DEBUG_MAGENTA
unshaded magenta material -
DEBUG_PINK
unshaded pink material -
debugNode
node for attaching debug geometries -
arrowBlue
mesh for the blue arrow -
arrowBlueGeom
geometry for the blue arrow -
arrowGreen
mesh for the green arrow -
arrowGreenGeom
geometry for the green arrow -
arrowRed
mesh for the red arrow -
arrowRedGeom
geometry for the red arrow -
arrowMagenta
mesh for the magenta arrow -
arrowMagentaGeom
geometry for the magenta arrow -
arrowYellow
mesh for the yellow arrow -
arrowYellowGeom
geometry for the yellow arrow -
arrowPink
mesh for the pink arrow -
arrowPinkGeom
geometry for the pink arrow -
UNIT_X_CHECK
local copy ofVector3f.UNIT_X
-
UNIT_Y_CHECK
local copy ofVector3f.UNIT_Y
-
UNIT_Z_CHECK
local copy ofVector3f.UNIT_Z
-
UNIT_XYZ_CHECK
local copy ofVector3f.UNIT_XYZ
-
ZERO_CHECK
local copy ofVector3f.ZERO
-
-
Constructor Details
-
DebugTools
Instantiate a set of debug tools.- Parameters:
manager
- for loading assets (not null, alias created)
-
-
Method Details
-
show
Render all the debug geometries to the specified view port.- Parameters:
rm
- the render manager (not null)vp
- the view port (not null)
-
setBlueArrow
Alter 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)
-
setGreenArrow
Alter 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)
-
setRedArrow
Alter 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)
-
setMagentaArrow
Alter 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)
-
setYellowArrow
Alter 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)
-
setPinkArrow
Alter 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)
-
setupDebugNode
protected void setupDebugNode()Attach all the debug geometries to the debug node. -
setupMaterials
protected void setupMaterials()Initialize all the DebugTools materials.
-