SO3Engine
SO3ShapeConcaveHull.cpp
Go to the documentation of this file.
1
12
13namespace SO3
14{
15
16SShapeConcaveHull::SShapeConcaveHull() : SShape("", SShape::SO3_NULL_COLLISION)
17{
18 // Forbiden, private.
19}
20
21SShapeConcaveHull::SShapeConcaveHull(const std::string& shapeName, SEntity* entity, const Ogre::Real& tolerance) : SShape(shapeName, SShape::SO3_CONCAVE_COLLISION)
22{
23 Ogre::Vector3 scale = Ogre::Vector3::UNIT_SCALE;
24#ifdef USE_COLLISION_NOSCALE
25 scale = entity->GetGlobalScale();
26#endif
27
29 mTolerance = tolerance;
30}
31
35
37{
38 return mTolerance;
39}
40
41}
Ogre::Entity * getOgreEntityPointer()
SScene * GetParentScene()
virtual Ogre::Vector3 GetGlobalScale()
OgreNewt::World * GetPhysicWorld()
SPhysicWorld * GetPhysicsWorld()
OgreNewt::CollisionPtr mCollisionPtr
Definition SO3Shape.h:66
Manage physics shape .
Collision * CollisionPtr