mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 09:23:03 -04:00
Using OmniBoundingVolume for BulletDebugNode.
This commit is contained in:
parent
78b0e9b627
commit
7ee4f338ac
@ -16,6 +16,7 @@
|
||||
|
||||
#include "geomVertexFormat.h"
|
||||
#include "geomVertexWriter.h"
|
||||
#include "omniBoundingVolume.h"
|
||||
|
||||
TypeHandle BulletDebugNode::_type_handle;
|
||||
|
||||
@ -57,6 +58,9 @@ BulletDebugNode(const char *name) : GeomNode(name), _verbose(false) {
|
||||
_prim_triangles->add_next_vertices(3);
|
||||
_prim_triangles->close_primitive();
|
||||
|
||||
CPT (BoundingVolume) bounds = new OmniBoundingVolume();
|
||||
set_bounds(bounds);
|
||||
set_final(true);
|
||||
set_overall_hidden(true);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user