1 #ifndef OPENMW_MWRENDER_BULLETDEBUGDRAW_H
2 #define OPENMW_MWRENDER_BULLETDEBUGDRAW_H
6 #include <osg/PrimitiveSet>
8 #include <LinearMath/btIDebugDraw.h>
10 class btCollisionWorld;
37 DebugDrawer(osg::ref_ptr<osg::Group> parentNode, btCollisionWorld *world);
42 void drawLine(
const btVector3& from,
const btVector3& to,
const btVector3& color);
44 void drawContactPoint(
const btVector3& PointOnB,
const btVector3& normalOnB,btScalar
distance,
int lifeTime,
const btVector3& color);
48 void draw3dText(
const btVector3& location,
const char* textString) {}
void drawContactPoint(const btVector3 &PointOnB, const btVector3 &normalOnB, btScalar distance, int lifeTime, const btVector3 &color)
Definition: bulletdebugdraw.cpp:86
void reportErrorWarning(const char *warningString)
Definition: bulletdebugdraw.cpp:92
void createGeometry()
Definition: bulletdebugdraw.cpp:32
void destroyGeometry()
Definition: bulletdebugdraw.cpp:52
void step()
Definition: bulletdebugdraw.cpp:68
void setDebugMode(int isOn)
Definition: bulletdebugdraw.cpp:97
Definition: bulletdebugdraw.hpp:21
osg::ref_ptr< osg::DrawArrays > mDrawArrays
Definition: bulletdebugdraw.hpp:28
osg::ref_ptr< osg::Vec3Array > mVertices
Definition: bulletdebugdraw.hpp:27
float distance(const ESM::Pathgrid::Point &point, float x, float y, float z)
Definition: pathfinding.cpp:69
DebugDrawer(osg::ref_ptr< osg::Group > parentNode, btCollisionWorld *world)
Definition: bulletdebugdraw.cpp:23
void drawLine(const btVector3 &from, const btVector3 &to, const btVector3 &color)
Definition: bulletdebugdraw.cpp:80
osg::ref_ptr< osg::Geometry > mGeometry
Definition: bulletdebugdraw.hpp:26
~DebugDrawer()
Definition: bulletdebugdraw.cpp:63
int getDebugMode() const
Definition: bulletdebugdraw.cpp:107
btCollisionWorld * mWorld
Definition: bulletdebugdraw.hpp:25
bool mDebugOn
Definition: bulletdebugdraw.hpp:30
void draw3dText(const btVector3 &location, const char *textString)
Definition: bulletdebugdraw.hpp:48
osg::ref_ptr< osg::Group > mParentNode
Definition: bulletdebugdraw.hpp:24