SO3Engine
|
SO3ShapeTree.cpp
Go to the documentation of this file.
22SShapeTree::SShapeTree(const std::string& shapeName, SEntity* entity, const bool& optimize) : SShape(shapeName, SShape::SO3_TREE_COLLISION)
29 mCollisionPtr = OgreNewt::CollisionPtr(new OgreNewt::CollisionPrimitives::TreeCollision(entity->GetParentScene()->GetPhysicsWorld()->GetPhysicWorld(), entity->getOgreEntityPointer(), optimize, 0, OgreNewt::CollisionPrimitives::FW_DEFAULT, scale));
33SShapeTree::SShapeTree(const std::string& shapeName, SNode* node, const bool& optimize) : SShape(shapeName, SShape::SO3_TREE_COLLISION)
41 mCollisionPtr = OgreNewt::CollisionPtr(new OgreNewt::CollisionPrimitives::TreeCollision(node->GetParentScene()->GetPhysicsWorld()->GetPhysicWorld(), node->GetOgreSceneNodePointer(), optimize, 0, OgreNewt::CollisionPrimitives::FW_DEFAULT, scale));
TreeCollision - complex polygonal collision.
Definition OgreNewt_CollisionPrimitives.h:305
Definition SO3Entity.h:43
Definition SO3NodeScol.h:43
Ogre::SceneNode * GetOgreSceneNodePointer()
Definition SO3NodeScol.cpp:163
Definition SO3Shape.h:47
Manage physics shape .
Definition SO3DataScol.h:38
Generated by 1.9.8