public abstract class IDebugDraw extends Object
Typical use case: create a debug drawer object, and assign it to a CollisionWorld
or DynamicsWorld using setDebugDrawer and call debugDrawWorld.
A class that implements the IDebugDraw interface has to implement the drawLine method at a minimum.
| Constructor and Description |
|---|
IDebugDraw() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
draw3dText(Vector3f location,
String textString) |
void |
drawAabb(Vector3f from,
Vector3f to,
Vector3f color) |
abstract void |
drawContactPoint(Vector3f PointOnB,
Vector3f normalOnB,
float distance,
int lifeTime,
Vector3f color) |
abstract void |
drawLine(Vector3f from,
Vector3f to,
Vector3f color) |
void |
drawTriangle(Vector3f v0,
Vector3f v1,
Vector3f v2,
Vector3f color,
float alpha) |
void |
drawTriangle(Vector3f v0,
Vector3f v1,
Vector3f v2,
Vector3f n0,
Vector3f n1,
Vector3f n2,
Vector3f color,
float alpha) |
abstract int |
getDebugMode() |
abstract void |
reportErrorWarning(String warningString) |
abstract void |
setDebugMode(int debugMode) |
public void drawTriangle(Vector3f v0, Vector3f v1, Vector3f v2, Vector3f n0, Vector3f n1, Vector3f n2, Vector3f color, float alpha)
public void drawTriangle(Vector3f v0, Vector3f v1, Vector3f v2, Vector3f color, float alpha)
public abstract void drawContactPoint(Vector3f PointOnB, Vector3f normalOnB, float distance, int lifeTime, Vector3f color)
public abstract void reportErrorWarning(String warningString)
public abstract void setDebugMode(int debugMode)
public abstract int getDebugMode()