Added shapes, found and fixed possible memory leak

This commit is contained in:
andreja6
2019-11-07 10:28:19 -08:00
parent b2240a4ad0
commit 7b87773abf
10 changed files with 446 additions and 120 deletions

View File

@@ -32,6 +32,7 @@ public:
CoordinateFrame getCFrameRenderBased();
Vector3 getSize();
void setSize(Vector3);
void setShape(Enum::Shape::Value shape);
bool canCollide;
bool anchored;
Vector3 rotVelocity;
@@ -43,6 +44,8 @@ public:
void addNormals(Vector3 normal);
void addSingularNormal(Vector3 normal);
void addTriangle(Vector3 vertexPos,Vector3 vertexPos2, Vector3 vertexPos3);
void addPlus(Vector3 v1);
void addPlus2(Vector3 v1);
void debugPrintVertexIDs(RenderDevice* rd, GFontRef font, Matrix3 camRot);
void makeFace(int vertex1, int vertex2, int vertex3);
bool isUniqueVertex(Vector3 pos);