|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jmex.physics.PhysicsDebugger
public class PhysicsDebugger
Analoguous to Debugger this class can be used to view physics data such as physics
collision bounds, velocity and forces.
| Field Summary | |
|---|---|
static com.jme.renderer.ColorRGBA |
COLOR_ACTIVE
|
static com.jme.renderer.ColorRGBA |
COLOR_ACTIVE_RESTING
|
static com.jme.renderer.ColorRGBA |
COLOR_CENTER
|
static com.jme.renderer.ColorRGBA |
COLOR_CENTER_OF_MASS
|
static com.jme.renderer.ColorRGBA |
COLOR_INACTIVE
|
static com.jme.renderer.ColorRGBA |
COLOR_JOINT
|
| Constructor Summary | |
|---|---|
protected |
PhysicsDebugger()
|
| Method Summary | |
|---|---|
static void |
drawArrow(com.jme.math.Vector3f from,
com.jme.math.Vector3f to,
com.jme.renderer.ColorRGBA color,
com.jme.renderer.Renderer renderer)
Draws an arrow in specified color. |
static void |
drawCross(com.jme.math.Vector3f center,
float length,
com.jme.renderer.Renderer renderer,
com.jme.renderer.ColorRGBA color,
int lineWidth)
|
static void |
drawDebugShape(com.jme.scene.Spatial debugShape,
com.jme.math.Vector3f geometryPivot,
PhysicsCollisionGeometry geometry,
com.jme.renderer.Renderer renderer,
float approximateVisualSize)
|
static void |
drawPhysics(PhysicsCollisionGeometry physicsCollisionGeometry,
com.jme.renderer.Renderer renderer)
Draw all info available for the physics geometry. |
static void |
drawPhysics(PhysicsNode physicsNode,
com.jme.renderer.Renderer renderer)
Draw all info available for the physics node. |
static void |
drawPhysics(PhysicsSpace space,
com.jme.renderer.Renderer renderer)
Draw all info available for the physics nodes in the specified space. |
static void |
setupDebugGeom(com.jme.scene.Geometry debugShape)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final com.jme.renderer.ColorRGBA COLOR_ACTIVE
public static final com.jme.renderer.ColorRGBA COLOR_ACTIVE_RESTING
public static final com.jme.renderer.ColorRGBA COLOR_INACTIVE
public static final com.jme.renderer.ColorRGBA COLOR_CENTER
public static final com.jme.renderer.ColorRGBA COLOR_CENTER_OF_MASS
public static final com.jme.renderer.ColorRGBA COLOR_JOINT
| Constructor Detail |
|---|
protected PhysicsDebugger()
| Method Detail |
|---|
public static void drawPhysics(PhysicsSpace space,
com.jme.renderer.Renderer renderer)
space - what to draw info forrenderer - where to draw
public static void drawPhysics(PhysicsNode physicsNode,
com.jme.renderer.Renderer renderer)
physicsNode - what to draw info forrenderer - where to draw
public static void drawPhysics(PhysicsCollisionGeometry physicsCollisionGeometry,
com.jme.renderer.Renderer renderer)
physicsCollisionGeometry - what to draw info forrenderer - where to draw
public static void drawDebugShape(com.jme.scene.Spatial debugShape,
com.jme.math.Vector3f geometryPivot,
PhysicsCollisionGeometry geometry,
com.jme.renderer.Renderer renderer,
float approximateVisualSize)
public static void drawCross(com.jme.math.Vector3f center,
float length,
com.jme.renderer.Renderer renderer,
com.jme.renderer.ColorRGBA color,
int lineWidth)
public static void drawArrow(com.jme.math.Vector3f from,
com.jme.math.Vector3f to,
com.jme.renderer.ColorRGBA color,
com.jme.renderer.Renderer renderer)
drawDebugShape(com.jme.scene.Spatial, com.jme.math.Vector3f, com.jmex.physics.PhysicsCollisionGeometry, com.jme.renderer.Renderer, float) only!
from - starting point of the arrowto - target point of the arrowcolor - of the arrowrenderer - where to draw topublic static void setupDebugGeom(com.jme.scene.Geometry debugShape)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||