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
FieldsModifier and TypeFieldDescriptioncom.jme3.scene.debug.Arrowmesh for the blue arrowcom.jme3.scene.Geometrygeometry for the blue arrowcom.jme3.scene.debug.Arrowmesh for the green arrowcom.jme3.scene.Geometrygeometry for the green arrowcom.jme3.scene.debug.Arrowmesh for the magenta arrowcom.jme3.scene.Geometrygeometry for the magenta arrowcom.jme3.scene.debug.Arrowmesh for the pink arrowcom.jme3.scene.Geometrygeometry for the pink arrowcom.jme3.scene.debug.Arrowmesh for the red arrowcom.jme3.scene.Geometrygeometry for the red arrowcom.jme3.scene.debug.Arrowmesh for the yellow arrowcom.jme3.scene.Geometrygeometry for the yellow arrowcom.jme3.material.Materialunshaded blue materialcom.jme3.material.Materialunshaded green materialcom.jme3.material.Materialunshaded magenta materialcom.jme3.material.Materialunshaded pink materialcom.jme3.material.Materialunshaded red materialcom.jme3.material.Materialunshaded yellow materialcom.jme3.scene.Nodenode for attaching debug geometriesstatic final Loggermessage logger for this classprotected final com.jme3.asset.AssetManagerasset managerprotected static final com.jme3.math.Vector3flocal copy ofVector3f.UNIT_Xprotected static final com.jme3.math.Vector3flocal copy ofVector3f.UNIT_XYZprotected static final com.jme3.math.Vector3flocal copy ofVector3f.UNIT_Yprotected static final com.jme3.math.Vector3flocal copy ofVector3f.UNIT_Zprotected static final com.jme3.math.Vector3flocal copy ofVector3f.ZERO -
Constructor Summary
ConstructorsConstructorDescriptionDebugTools(com.jme3.asset.AssetManager manager) Instantiate a set of debug tools. -
Method Summary
Modifier and TypeMethodDescriptionvoidsetBlueArrow(com.jme3.math.Vector3f location, com.jme3.math.Vector3f extent) Alter the location and extent of the blue arrow.voidsetGreenArrow(com.jme3.math.Vector3f location, com.jme3.math.Vector3f extent) Alter the location and extent of the green arrow.voidsetMagentaArrow(com.jme3.math.Vector3f location, com.jme3.math.Vector3f extent) Alter the location and extent of the magenta arrow.voidsetPinkArrow(com.jme3.math.Vector3f location, com.jme3.math.Vector3f extent) Alter the location and extent of the pink arrow.voidsetRedArrow(com.jme3.math.Vector3f location, com.jme3.math.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(com.jme3.math.Vector3f location, com.jme3.math.Vector3f extent) Alter the location and extent of the yellow arrow.voidshow(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.
-