40 #ifndef _physicscapsulecollisionshape_cpp
41 #define _physicscapsulecollisionshape_cpp
43 #include "Physics/capsulecollisionshape.h"
44 #include "collisionshapemanager.h"
45 #include "stringtool.h"
47 #include "btBulletDynamicsCommon.h"
59 btCapsuleShape* CapsuleShape = 0;
60 if(
Axis_Y == UpAxis) CapsuleShape =
new btCapsuleShape(Radius,Height);
61 else if(
Axis_X == UpAxis) CapsuleShape =
new btCapsuleShapeX(Radius,Height);
62 else if(
Axis_Z == UpAxis) CapsuleShape =
new btCapsuleShapeZ(Radius,Height);
71 { this->
Construct(Name,Radius,Height,UpAxis); }
78 if(!OneName) { MEZZ_EXCEPTION(
Exception::PARAMETERS_EXCEPTION,
"Could not find Name Attribute on CollsionShape Node during preparation for deserialization"); }
137 {
return static_cast<btCapsuleShape*
>(
ShapeBase); }
190 {
return String(
"CapsuleCollisionShape"); }