Package com.jme3.bullet.debug
Class DebugTools
java.lang.Object
com.jme3.bullet.debug.DebugTools
Debugging aids. This class exists solely for compatibility with the
jme3-jbullet library.
-
Field Summary
Modifier and TypeFieldDescriptioncom.jme3.scene.debug.Arrow
mesh for the blue arrowcom.jme3.scene.Geometry
geometry for the blue arrowcom.jme3.scene.debug.Arrow
mesh for the green arrowcom.jme3.scene.Geometry
geometry for the green arrowcom.jme3.scene.debug.Arrow
mesh for the magenta arrowcom.jme3.scene.Geometry
geometry for the magenta arrowcom.jme3.scene.debug.Arrow
mesh for the pink arrowcom.jme3.scene.Geometry
geometry for the pink arrowcom.jme3.scene.debug.Arrow
mesh for the red arrowcom.jme3.scene.Geometry
geometry for the red arrowcom.jme3.scene.debug.Arrow
mesh for the yellow arrowcom.jme3.scene.Geometry
geometry for the yellow arrowcom.jme3.material.Material
unshaded blue materialcom.jme3.material.Material
unshaded green materialcom.jme3.material.Material
unshaded magenta materialcom.jme3.material.Material
unshaded pink materialcom.jme3.material.Material
unshaded red materialcom.jme3.material.Material
unshaded yellow materialcom.jme3.scene.Node
node for attaching debug geometriesstatic final Logger
message logger for this classprotected final com.jme3.asset.AssetManager
asset managerprotected static final com.jme3.math.Vector3f
local copy ofVector3f.UNIT_X
protected static final com.jme3.math.Vector3f
local copy ofVector3f.UNIT_XYZ
protected static final com.jme3.math.Vector3f
local copy ofVector3f.UNIT_Y
protected static final com.jme3.math.Vector3f
local copy ofVector3f.UNIT_Z
protected static final com.jme3.math.Vector3f
local copy ofVector3f.ZERO
-
Constructor Summary
ConstructorDescriptionDebugTools
(com.jme3.asset.AssetManager manager) Instantiate a set of debug tools. -
Method Summary
Modifier and TypeMethodDescriptionvoid
setBlueArrow
(com.jme3.math.Vector3f location, com.jme3.math.Vector3f extent) Alter the location and extent of the blue arrow.void
setGreenArrow
(com.jme3.math.Vector3f location, com.jme3.math.Vector3f extent) Alter the location and extent of the green arrow.void
setMagentaArrow
(com.jme3.math.Vector3f location, com.jme3.math.Vector3f extent) Alter the location and extent of the magenta arrow.void
setPinkArrow
(com.jme3.math.Vector3f location, com.jme3.math.Vector3f extent) Alter the location and extent of the pink arrow.void
setRedArrow
(com.jme3.math.Vector3f location, com.jme3.math.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
(com.jme3.math.Vector3f location, com.jme3.math.Vector3f extent) Alter the location and extent of the yellow arrow.void
show
(com.jme3.renderer.RenderManager rm, com.jme3.renderer.ViewPort vp) Render all the debug geometries to the specified view port.
-
Field Details
-
logger
message logger for this class -
UNIT_XYZ_CHECK
protected static final com.jme3.math.Vector3f UNIT_XYZ_CHECKlocal copy ofVector3f.UNIT_XYZ
-
UNIT_X_CHECK
protected static final com.jme3.math.Vector3f UNIT_X_CHECKlocal copy ofVector3f.UNIT_X
-
UNIT_Y_CHECK
protected static final com.jme3.math.Vector3f UNIT_Y_CHECKlocal copy ofVector3f.UNIT_Y
-
UNIT_Z_CHECK
protected static final com.jme3.math.Vector3f UNIT_Z_CHECKlocal copy ofVector3f.UNIT_Z
-
ZERO_CHECK
protected static final com.jme3.math.Vector3f ZERO_CHECKlocal copy ofVector3f.ZERO
-
arrowBlue
public com.jme3.scene.debug.Arrow arrowBluemesh for the blue arrow -
arrowGreen
public com.jme3.scene.debug.Arrow arrowGreenmesh for the green arrow -
arrowMagenta
public com.jme3.scene.debug.Arrow arrowMagentamesh for the magenta arrow -
arrowPink
public com.jme3.scene.debug.Arrow arrowPinkmesh for the pink arrow -
arrowRed
public com.jme3.scene.debug.Arrow arrowRedmesh for the red arrow -
arrowYellow
public com.jme3.scene.debug.Arrow arrowYellowmesh for the yellow arrow -
manager
protected final com.jme3.asset.AssetManager managerasset manager -
arrowBlueGeom
public com.jme3.scene.Geometry arrowBlueGeomgeometry for the blue arrow -
arrowGreenGeom
public com.jme3.scene.Geometry arrowGreenGeomgeometry for the green arrow -
arrowMagentaGeom
public com.jme3.scene.Geometry arrowMagentaGeomgeometry for the magenta arrow -
arrowPinkGeom
public com.jme3.scene.Geometry arrowPinkGeomgeometry for the pink arrow -
arrowRedGeom
public com.jme3.scene.Geometry arrowRedGeomgeometry for the red arrow -
arrowYellowGeom
public com.jme3.scene.Geometry arrowYellowGeomgeometry for the yellow arrow -
DEBUG_BLUE
public com.jme3.material.Material DEBUG_BLUEunshaded blue material -
DEBUG_GREEN
public com.jme3.material.Material DEBUG_GREENunshaded green material -
DEBUG_MAGENTA
public com.jme3.material.Material DEBUG_MAGENTAunshaded magenta material -
DEBUG_PINK
public com.jme3.material.Material DEBUG_PINKunshaded pink material -
DEBUG_RED
public com.jme3.material.Material DEBUG_REDunshaded red material -
DEBUG_YELLOW
public com.jme3.material.Material DEBUG_YELLOWunshaded yellow material -
debugNode
public com.jme3.scene.Node debugNodenode for attaching debug geometries
-
-
Constructor Details
-
DebugTools
public DebugTools(com.jme3.asset.AssetManager manager) Instantiate a set of debug tools.- Parameters:
manager
- for loading assets (not null, alias created)
-
-
Method Details
-
setBlueArrow
public void setBlueArrow(com.jme3.math.Vector3f location, com.jme3.math.Vector3f extent) 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
public void setGreenArrow(com.jme3.math.Vector3f location, com.jme3.math.Vector3f extent) 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)
-
setMagentaArrow
public void setMagentaArrow(com.jme3.math.Vector3f location, com.jme3.math.Vector3f extent) 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)
-
setPinkArrow
public void setPinkArrow(com.jme3.math.Vector3f location, com.jme3.math.Vector3f extent) 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)
-
setRedArrow
public void setRedArrow(com.jme3.math.Vector3f location, com.jme3.math.Vector3f extent) 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)
-
setYellowArrow
public void setYellowArrow(com.jme3.math.Vector3f location, com.jme3.math.Vector3f extent) 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)
-
show
public void show(com.jme3.renderer.RenderManager rm, com.jme3.renderer.ViewPort vp) Render all the debug geometries to the specified view port.- Parameters:
rm
- the render manager (not null)vp
- the view port (not null)
-
setupDebugNode
protected void setupDebugNode()Attach all the debug geometries to the debug node. -
setupMaterials
protected void setupMaterials()Initialize all the DebugTools materials.
-