public class DebugTools
extends java.lang.Object
This class is shared between JBullet and Native Bullet.
Modifier and Type | Field and Description |
---|---|
Arrow |
arrowBlue
mesh for the blue arrow
|
Geometry |
arrowBlueGeom
geometry for the blue arrow
|
Arrow |
arrowGreen
mesh for the green arrow
|
Geometry |
arrowGreenGeom
geometry for the green arrow
|
Arrow |
arrowMagenta
mesh for the magenta arrow
|
Geometry |
arrowMagentaGeom
geometry for the magenta arrow
|
Arrow |
arrowPink
mesh for the pink arrow
|
Geometry |
arrowPinkGeom
geometry for the pink arrow
|
Arrow |
arrowRed
mesh for the red arrow
|
Geometry |
arrowRedGeom
geometry for the red arrow
|
Arrow |
arrowYellow
mesh for the yellow arrow
|
Geometry |
arrowYellowGeom
geometry for the yellow arrow
|
Material |
DEBUG_BLUE
unshaded blue material
|
Material |
DEBUG_GREEN
unshaded green material
|
Material |
DEBUG_MAGENTA
unshaded magenta material
|
Material |
DEBUG_PINK
unshaded pink material
|
Material |
DEBUG_RED
unshaded red material
|
Material |
DEBUG_YELLOW
unshaded yellow material
|
Node |
debugNode
node for attaching debug geometries
|
protected AssetManager |
manager |
protected static Vector3f |
UNIT_X_CHECK
local copy of
Vector3f.UNIT_X |
protected static Vector3f |
UNIT_XYZ_CHECK
local copy of
Vector3f.UNIT_XYZ |
protected static Vector3f |
UNIT_Y_CHECK
local copy of
Vector3f.UNIT_Y |
protected static Vector3f |
UNIT_Z_CHECK
local copy of
Vector3f.UNIT_Z |
protected static Vector3f |
ZERO_CHECK
local copy of
Vector3f.ZERO |
Constructor and Description |
---|
DebugTools(AssetManager manager)
Instantiate a set of debug tools.
|
Modifier and Type | Method and Description |
---|---|
void |
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 |
setupDebugNode()
Attach all the debug geometries to the debug node.
|
protected void |
setupMaterials()
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.
|
protected final AssetManager manager
public Material DEBUG_BLUE
public Material DEBUG_RED
public Material DEBUG_GREEN
public Material DEBUG_YELLOW
public Material DEBUG_MAGENTA
public Material DEBUG_PINK
public Node debugNode
public Arrow arrowBlue
public Geometry arrowBlueGeom
public Arrow arrowGreen
public Geometry arrowGreenGeom
public Arrow arrowRed
public Geometry arrowRedGeom
public Arrow arrowMagenta
public Geometry arrowMagentaGeom
public Arrow arrowYellow
public Geometry arrowYellowGeom
public Arrow arrowPink
public Geometry arrowPinkGeom
protected static final Vector3f UNIT_X_CHECK
Vector3f.UNIT_X
protected static final Vector3f UNIT_Y_CHECK
Vector3f.UNIT_Y
protected static final Vector3f UNIT_Z_CHECK
Vector3f.UNIT_Z
protected static final Vector3f UNIT_XYZ_CHECK
Vector3f.UNIT_XYZ
protected static final Vector3f ZERO_CHECK
Vector3f.ZERO
public DebugTools(AssetManager manager)
manager
- for loading assets (not null, alias created)public void show(RenderManager rm, ViewPort vp)
rm
- the render manager (not null)vp
- the view port (not null)public void setBlueArrow(Vector3f location, Vector3f extent)
location
- the coordinates of the tail (not null, unaffected)extent
- the offset of the tip from the tail (not null, unaffected)public void setGreenArrow(Vector3f location, Vector3f extent)
location
- the coordinates of the tail (not null, unaffected)extent
- the offset of the tip from the tail (not null, unaffected)public void setRedArrow(Vector3f location, Vector3f extent)
location
- the coordinates of the tail (not null, unaffected)extent
- the offset of the tip from the tail (not null, unaffected)public void setMagentaArrow(Vector3f location, Vector3f extent)
location
- the coordinates of the tail (not null, unaffected)extent
- the offset of the tip from the tail (not null, unaffected)public void setYellowArrow(Vector3f location, Vector3f extent)
location
- the coordinates of the tail (not null, unaffected)extent
- the offset of the tip from the tail (not null, unaffected)public void setPinkArrow(Vector3f location, Vector3f extent)
location
- the coordinates of the tail (not null, unaffected)extent
- the offset of the tip from the tail (not null, unaffected)protected void setupDebugNode()
protected void setupMaterials()