34 class _OgreNewtExport
Debugger :
public Ogre::Node::Listener
44 void init(Ogre::SceneManager* smgr);
50 virtual void nodeDestroyed(
const Ogre::Node *);
56 void showDebugInformation();
59 void hideDebugInformation();
62 void setDefaultColor(Ogre::ColourValue col);
65 void setMaterialColor(
const MaterialID* mat, Ogre::ColourValue col);
68 void startRaycastRecording(
bool markhitbodies =
false);
71 bool isRaycastRecording();
74 bool isRaycastRecordingHitBodies();
77 void clearRaycastsRecorded();
80 void stopRaycastRecording();
83 void setRaycastRecordingColor(Ogre::ColourValue rayCol, Ogre::ColourValue convexCol, Ogre::ColourValue hitBodyCol, Ogre::ColourValue prefilterDiscardedBodyCol);
86 void addRay(
const Ogre::Vector3 &startpt,
const Ogre::Vector3 &endpt);
89 void addConvexRay(
const OgreNewt::ConvexCollisionPtr& col,
const Ogre::Vector3 &startpt,
const Ogre::Quaternion &colori,
const Ogre::Vector3 &endpt);
98 void buildDebugObjectFromCollision(Ogre::ManualObject*
object, Ogre::ColourValue colour,
const NewtonCollision* shape)
const;
115 Ogre::ColourValue m_raycol,
m_convexcol, m_hitbodycol, m_prefilterdiscardedcol;
121#ifdef OGRENEWT_NO_COLLISION_SHAREDPTR
124 m_node(NULL), m_lines(NULL), m_text(NULL), m_updated(false) {}
136 void processBody(
Body* body);
139 void processJoint(
Joint* joint);
142 void clearBodyDebugDataCache();
156 const Debugger& operator=(
const Debugger& d) {
return d; }
158 static void _CDECL newtonPerPoly(
void* userData,
int vertexCount,
const float* faceVertec,
int id );
160 static void _CDECL newtonprocessJoints(
const NewtonJoint* joint,
void* userData);
main class for all Rigid Bodies in the system.
Ogre::ManualObject * m_lines
OgreNewt::OgreAddons::MovableText * m_text