40 #ifndef _physicsconvexhullcollisionshape_cpp
41 #define _physicsconvexhullcollisionshape_cpp
43 #include "Physics/convexhullcollisionshape.h"
44 #include "collisionshapemanager.h"
45 #include "stringtool.h"
47 #include "btBulletDynamicsCommon.h"
58 btScalar* BulletPoints =
new btScalar[Points.size() * 3];
59 for(
Whole X = 0 ; X < Points.size() ; ++X )
61 BulletPoints[X*3] = Points[X][0];
62 BulletPoints[X*3+1] = Points[X][1];
63 BulletPoints[X*3+2] = Points[X][2];
67 SetPointers(
new btConvexHullShape(BulletPoints,Points.size(),3*
sizeof(btScalar)));
69 delete[] BulletPoints;
84 if(!OneName) { MEZZ_EXCEPTION(
Exception::PARAMETERS_EXCEPTION,
"Could not find Name Attribute on CollsionShape Node during preparation for deserialization"); }
133 {
return static_cast<btConvexHullShape*
>(
ShapeBase); }
188 {
return String(
"ConvexHullCollisionShape"); }