1 #ifndef RADIX_PHYSICS_DEBUG_DRAW_HPP
2 #define RADIX_PHYSICS_DEBUG_DRAW_HPP
9 #include <bullet/LinearMath/btIDebugDraw.h>
19 std::unique_ptr<VBO>
vbo;
28 void drawLine(
const btVector3 &from,
const btVector3 &to,
const btVector3 &color);
29 void drawLine(
const btVector3 &from,
const btVector3 &to,
const btVector3 &fromColor,
30 const btVector3 &toColor);
32 void draw3dText(
const btVector3 &location,
const char *textString);
34 btScalar distance,
int lifeTime,
const btVector3 &color);
Definition: GameController.hpp:7
PhysicsDebugDraw()
Definition: PhysicsDebugDraw.cpp:9
Definition: PhysicsDebugDraw.hpp:16
void reportErrorWarning(const char *warningString)
Definition: PhysicsDebugDraw.cpp:25
void drawLine(const btVector3 &from, const btVector3 &to, const btVector3 &color)
Definition: PhysicsDebugDraw.cpp:29
float b
Definition: PhysicsDebugDraw.hpp:21
int getDebugMode() const
Definition: PhysicsDebugDraw.cpp:17
void drawContactPoint(const btVector3 &PointOnB, const btVector3 &normalOnB, btScalar distance, int lifeTime, const btVector3 &color)
Definition: PhysicsDebugDraw.cpp:43
std::vector< PtData > points
Definition: PhysicsDebugDraw.hpp:23
void setDebugMode(int debugMode)
Definition: PhysicsDebugDraw.cpp:21
std::unique_ptr< VBO > vbo
Definition: PhysicsDebugDraw.hpp:19
float x
Definition: PhysicsDebugDraw.hpp:21
float r
Definition: PhysicsDebugDraw.hpp:21
Definition: PhysicsDebugDraw.hpp:20
int dbgMode
Definition: PhysicsDebugDraw.hpp:18
Definition: Camera.hpp:11
void draw3dText(const btVector3 &location, const char *textString)
Definition: PhysicsDebugDraw.cpp:13
float y
Definition: PhysicsDebugDraw.hpp:21
float z
Definition: PhysicsDebugDraw.hpp:21
float g
Definition: PhysicsDebugDraw.hpp:21
void render(const Camera &cam)
Definition: PhysicsDebugDraw.cpp:49