Uh, Updates?

This commit is contained in:
Michael Fabian Dirks
2016-10-03 17:11:15 +02:00
parent aa3cf453e5
commit 581c640149
62 changed files with 469 additions and 489 deletions
+2 -2
View File
@@ -111,7 +111,7 @@ Box MeshCollider::nodeBox( const vector<int> &tris ){
MeshCollider::Node *MeshCollider::createLeaf( const vector<int> &tris ){
Node *c=d_new Node;
Node *c=new Node;
c->box=nodeBox( tris );
c->triangles=tris;
leaves.push_back( c );
@@ -122,7 +122,7 @@ MeshCollider::Node *MeshCollider::createNode( const vector<int> &tris ){
if( tris.size()<=MAX_COLL_TRIS ) return createLeaf( tris );
Node *c=d_new Node;
Node *c=new Node;
c->box=nodeBox( tris );
//find longest axis