15 #ifndef __BULLET_DEBUG_NODE_H__
16 #define __BULLET_DEBUG_NODE_H__
18 #include "pandabase.h"
20 #include "bullet_includes.h"
34 virtual void draw_mask_changed();
36 INLINE
void show_wireframe(
bool show);
37 INLINE
void show_constraints(
bool show);
38 INLINE
void show_bounding_boxes(
bool show);
39 INLINE
void show_normals(
bool show);
50 void sync_b2p(btDynamicsWorld *world);
65 class DebugDraw :
public btIDebugDraw {
70 virtual void setDebugMode(
int mode);
71 virtual int getDebugMode()
const;
72 virtual void reportErrorWarning(
const char *warning);
74 virtual void drawLine(
const btVector3 &from,
const btVector3 &to,
75 const btVector3 &
color);
76 virtual void drawContactPoint(
const btVector3 &point,
77 const btVector3 &normal, btScalar distance,
int lifetime,
78 const btVector3 &color);
79 virtual void draw3dText(
const btVector3 &location,
const char *text);
80 virtual void drawTriangle(
const btVector3 &v0,
const btVector3 &v1,
81 const btVector3 &v2,
const btVector3 &color, btScalar);
82 virtual void drawTriangle(
const btVector3 &v0,
const btVector3 &v1,
83 const btVector3 &v2,
const btVector3 &n0,
const btVector3 &n1,
84 const btVector3 &n2,
const btVector3 &color, btScalar alpha);
85 virtual void drawSphere(btScalar radius,
const btTransform &transform,
86 const btVector3 &color);
109 static void init_type() {
110 GeomNode::init_type();
111 register_type(_type_handle,
"BulletDebugNode",
112 GeomNode::get_class_type());
115 return get_class_type();
119 return get_class_type();
126 #include "bulletDebugNode.I"
128 #endif // __BULLET_DEBUG_NODE_H__
This is the base class for all three-component vectors and points.
This is an "unaligned" LVecBase4.
virtual bool safe_to_modify_transform() const
Returns true if it is safe to automatically adjust the transform on this kind of node.
virtual bool safe_to_combine_children() const
Returns true if it is generally safe to combine the children of this PandaNode with each other...
virtual bool safe_to_flatten() const
Returns true if it is generally safe to flatten out this particular kind of PandaNode by duplicating ...
virtual bool safe_to_transform() const
Returns true if it is generally safe to transform this particular kind of PandaNode by calling the xf...
virtual bool safe_to_combine() const
Returns true if it is generally safe to combine this particular kind of PandaNode with other kinds of...
virtual bool safe_to_flatten_below() const
Returns true if a flatten operation may safely continue past this node, or false if nodes below this ...
TypeHandle is the identifier used to differentiate C++ class types.
A node that holds Geom objects, renderable pieces of geometry.