1 #ifndef _BulletDebugDrawer_H__ 2 #define _BulletDebugDrawer_H__ 6 #include <btBulletCollisionCommon.h> 7 #include <OgreFrameListener.h> 8 #include <OgreVector3.h> 9 #include <OgreColourValue.h> 24 virtual void drawLine(
const btVector3& from,
const btVector3& to,
const btVector3& color)
override;
26 virtual void drawSphere (
const btVector3& p, btScalar radius,
const btVector3& color)
override;
27 virtual void drawSphere(btScalar radius,
const btTransform& transform,
const btVector3& color)
override;
28 virtual void drawBox(
const btVector3& bbMin,
const btVector3& bbMax,
const btVector3& color)
override;
29 virtual void drawBox(
const btVector3& bbMin,
const btVector3& bbMax,
const btTransform& trans,
const btVector3& color)
override;
30 virtual void drawCylinder(btScalar radius, btScalar halfHeight,
int upAxis,
const btTransform& transform,
const btVector3& color)
override;
31 virtual void drawCone(btScalar radius, btScalar height,
int upAxis,
const btTransform& transform,
const btVector3& color)
override;
34 virtual void drawContactPoint(
const btVector3& PointOnB,
const btVector3& normalOnB, btScalar distance,
int lifeTime,
const btVector3& color)
override;
36 virtual void reportErrorWarning(
const char* warningString)
override;
37 virtual void draw3dText(
const btVector3& location,
const char* textString)
override;
39 virtual void setDebugMode(
int debugMode)
override;
40 virtual int getDebugMode()
const override;
42 void configure(
bool bFill,
float fillAlpha);
45 virtual bool frameStarted(
const Ogre::FrameEvent& evt)
override;
46 virtual bool frameEnded(
const Ogre::FrameEvent& evt)
override;
std::vector< ContactPoint > * mContactPoints
Definition: BulletDebugDrawer.h:61
DebugDrawer is a utility to draw debug shapes (lines, triangles, spheres) with Ogre.
Definition: DebugDrawer.h:29
Originally from http://www.ogre3d.org/tikiwiki/BulletDebugDrawer&structure=Cookbook This source code ...
Definition: BulletDebugDrawer.h:19
bool bFill_
Definition: BulletDebugDrawer.h:57
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
std::vector< ContactPoint > mContactPoints2
Definition: BulletDebugDrawer.h:63
DebugDrawModes mDebugMode
Definition: BulletDebugDrawer.h:60
DebugDrawer * drawer_
Definition: BulletDebugDrawer.h:58
std::vector< ContactPoint > mContactPoints1
Definition: BulletDebugDrawer.h:62