com.bulletphysics.linearmath
Class IDebugDraw

java.lang.Object
  extended by com.bulletphysics.linearmath.IDebugDraw

public abstract class IDebugDraw
extends Object

IDebugDraw interface class allows hooking up a debug renderer to visually debug simulations.

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 Summary
IDebugDraw()
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IDebugDraw

public IDebugDraw()
Method Detail

drawLine

public abstract void drawLine(Vector3f from,
                              Vector3f to,
                              Vector3f color)

drawTriangle

public void drawTriangle(Vector3f v0,
                         Vector3f v1,
                         Vector3f v2,
                         Vector3f n0,
                         Vector3f n1,
                         Vector3f n2,
                         Vector3f color,
                         float alpha)

drawTriangle

public void drawTriangle(Vector3f v0,
                         Vector3f v1,
                         Vector3f v2,
                         Vector3f color,
                         float alpha)

drawContactPoint

public abstract void drawContactPoint(Vector3f PointOnB,
                                      Vector3f normalOnB,
                                      float distance,
                                      int lifeTime,
                                      Vector3f color)

reportErrorWarning

public abstract void reportErrorWarning(String warningString)

draw3dText

public abstract void draw3dText(Vector3f location,
                                String textString)

setDebugMode

public abstract void setDebugMode(int debugMode)

getDebugMode

public abstract int getDebugMode()

drawAabb

public void drawAabb(Vector3f from,
                     Vector3f to,
                     Vector3f color)