SO3Engine
|
SO3ShapePyramid.cpp
Go to the documentation of this file.
21SShapePyramid::SShapePyramid(const std::string& shapeName, SNode* node, const Ogre::Vector3& size) : SShape(shapeName, SShape::SO3_PYRAMID_COLLISION)
29 mSize = Ogre::Vector3(std::max(size.x, 0.0001f), std::max(size.y, 0.0001f), std::max(size.z, 0.0001f));
39 mCollisionPtr = OgreNewt::CollisionPtr(new OgreNewt::CollisionPrimitives::Pyramid(node->GetParentScene()->GetPhysicsWorld()->GetPhysicWorld(), mSize, 0, Ogre::Quaternion::IDENTITY, mComputedOffset));
42SShapePyramid::SShapePyramid(const std::string& shapeName, SNode* node, const Ogre::Vector3& size, const Ogre::Vector3& offset, const Ogre::Quaternion& quat) : SShape(shapeName, SShape::SO3_PYRAMID_COLLISION)
50 mSize = Ogre::Vector3(std::max(size.x, 0.0001f), std::max(size.y, 0.0001f), std::max(size.z, 0.0001f));
62 mCollisionPtr = OgreNewt::CollisionPtr(new OgreNewt::CollisionPrimitives::Pyramid(node->GetParentScene()->GetPhysicsWorld()->GetPhysicWorld(), mSize, 0, mBaseRotation, mComputedOffset));
Pyramid primitive.
Definition OgreNewt_CollisionPrimitives.h:466
Definition SO3Entity.h:43
Definition SO3NodeScol.h:43
Definition SO3Shape.h:47
Manage physics shape .
Definition SO3DataScol.h:38
Generated by 1.9.8