Browse Source

Using OmniBoundingVolume for BulletDebugNode.

enn0x 14 years ago
parent
commit
7ee4f338ac
1 changed files with 4 additions and 0 deletions
  1. 4 0
      panda/src/bullet/bulletDebugNode.cxx

+ 4 - 0
panda/src/bullet/bulletDebugNode.cxx

@@ -16,6 +16,7 @@
 
 
 #include "geomVertexFormat.h"
 #include "geomVertexFormat.h"
 #include "geomVertexWriter.h"
 #include "geomVertexWriter.h"
+#include "omniBoundingVolume.h"
 
 
 TypeHandle BulletDebugNode::_type_handle;
 TypeHandle BulletDebugNode::_type_handle;
 
 
@@ -57,6 +58,9 @@ BulletDebugNode(const char *name) : GeomNode(name), _verbose(false) {
   _prim_triangles->add_next_vertices(3);
   _prim_triangles->add_next_vertices(3);
   _prim_triangles->close_primitive();
   _prim_triangles->close_primitive();
 
 
+  CPT (BoundingVolume) bounds = new OmniBoundingVolume();
+  set_bounds(bounds);
+  set_final(true);
   set_overall_hidden(true);
   set_overall_hidden(true);
 }
 }