4#ifndef PHYSICS_BULLET_DEBUGDRAWER_H
5#define PHYSICS_BULLET_DEBUGDRAWER_H
7#include <btBulletDynamicsCommon.h>
15 void drawContactPoint(
const btVector3& PointOnB,
const btVector3& normalOnB, btScalar distance,
int lifeTime,
const btVector3& color) {
16 drawLine(PointOnB, normalOnB, color);
20 std::cout << warningString << std::endl;
23 void draw3dText(
const btVector3& location,
const char* textString) {
30 return DBG_MAX_DEBUG_DRAW_MODE;
33 void drawLine(
const btVector3& from,
const btVector3& to,
const btVector3& color){
35 {from.getX(), from.getY(), from.getZ()},
36 {to.getX(), to.getY(), to.getZ()},
37 {color.getX(), color.getY(), color.getZ()}
Definition: debugdrawer.h:12
void reportErrorWarning(const char *warningString)
Definition: debugdrawer.h:19
void setDebugMode(int debugMode)
Definition: debugdrawer.h:27
void draw3dText(const btVector3 &location, const char *textString)
Definition: debugdrawer.h:23
void drawLine(const btVector3 &from, const btVector3 &to, const btVector3 &color)
Definition: debugdrawer.h:33
int getDebugMode() const
Definition: debugdrawer.h:29
void drawContactPoint(const btVector3 &PointOnB, const btVector3 &normalOnB, btScalar distance, int lifeTime, const btVector3 &color)
Definition: debugdrawer.h:15
void AddLine(vec3 from, vec3 to, vec3 color)
Definition: render.cpp:228