SO3Engine
|
SO3ShapeBox.cpp
Go to the documentation of this file.
21SShapeBox::SShapeBox(const std::string& shapeName, SNode* node, const Ogre::Vector3& size) : SShape(shapeName, SShape::SO3_BOX_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::Box(node->GetParentScene()->GetPhysicsWorld()->GetPhysicWorld(), mSize, 0, Ogre::Quaternion::IDENTITY, mComputedOffset));
42SShapeBox::SShapeBox(const std::string& shapeName, SNode* node, const Ogre::Vector3& size, const Ogre::Vector3& offset, const Ogre::Quaternion& quat) : SShape(shapeName, SShape::SO3_BOX_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::Box(node->GetParentScene()->GetPhysicsWorld()->GetPhysicWorld(), mSize, 0, mBaseRotation, mComputedOffset));
standard primitive Box.
Definition OgreNewt_CollisionPrimitives.h:45
Definition SO3Entity.h:43
Definition SO3NodeScol.h:43
Definition SO3Shape.h:47
Manage physics shape .
Definition SO3DataScol.h:38
Generated by 1.9.8