SO3Engine
|
OgreNewt_Collision.h
Go to the documentation of this file.
6 OgreNewt basically has no license, you may use any or all of the library however you desire... I hope it can help you in any way.
38 };
77 // this is not possible any more (since newton 2.04), you can only set the id when creating the collision
80 // you can set different IDs for each piece in a compound collision object, and then use these IDs in a collision callback to
92 Ogre::AxisAlignedBox getAABB(const Ogre::Quaternion& orient = Ogre::Quaternion::IDENTITY, const Ogre::Vector3& pos = Ogre::Vector3::ZERO) const;
95 CollisionPrimitiveType getCollisionPrimitiveType() const { return getCollisionPrimitiveType(m_col); }
108 //friend void CollisionSerializer::exportCollision(const CollisionPtr& collision, const Ogre::String& filename);
136 Ogre::Real calculateVolume() const { return (Ogre::Real)NewtonConvexCollisionCalculateVolume(m_col); }
CollisionPrimitiveType getCollisionPrimitiveType() const
Returns the Collisiontype for this Collision.
Definition OgreNewt_Collision.h:95
NewtonCollisionInfoRecord * getInfo()
Returns collision info record for this collision.
Definition OgreNewt_Collision.h:101
NewtonCollision *const getNewtonCollision() const
retrieve the Newton pointer
Definition OgreNewt_Collision.h:70
represents a collision shape that is explicitly convex.
Definition OgreNewt_Collision.h:121
void calculateInertialMatrix(Ogre::Vector3 &inertia, Ogre::Vector3 &offset) const
calculate the moment of inertia for this collision primitive, along with the theoretical center-of-ma...
Definition OgreNewt_Collision.h:139
Ogre::Real calculateVolume() const
calculate the volume of the collision shape, useful for buoyancy calculations.
Definition OgreNewt_Collision.h:136
@ CompoundCollisionPrimitiveType
Definition OgreNewt_Collision.h:31
@ ChamferCylinderPrimitiveType
Definition OgreNewt_Collision.h:33
Generated by 1.9.8