SO3Engine
|
OgreNewt::CollisionPrimitives::Ellipsoid Class Reference
standard primitive Ellipsoid.
More...
#include <OgreNewt_CollisionPrimitives.h>
Inheritance diagram for OgreNewt::CollisionPrimitives::Ellipsoid:
Public Member Functions | |
Ellipsoid (const World *world) | |
constructor | |
Ellipsoid (const World *world, const Ogre::Vector3 &size, int id, const Ogre::Quaternion &orient=Ogre::Quaternion::IDENTITY, const Ogre::Vector3 &pos=Ogre::Vector3::ZERO) | |
constructor | |
~Ellipsoid () | |
destructor | |
Public Member Functions inherited from OgreNewt::ConvexCollision | |
ConvexCollision (const World *world) | |
constructor | |
ConvexCollision (const Collision &convexShape) | |
constructor | |
ConvexCollision (const ConvexCollision &convexShape) | |
constructor | |
~ConvexCollision () | |
destructor | |
Ogre::Real | calculateVolume () const |
calculate the volume of the collision shape, useful for buoyancy calculations. | |
void | calculateInertialMatrix (Ogre::Vector3 &inertia, Ogre::Vector3 &offset) const |
calculate the moment of inertia for this collision primitive, along with the theoretical center-of-mass for this shape. | |
Public Member Functions inherited from OgreNewt::Collision | |
Collision (const World *world) | |
constructor | |
Collision (const Collision &shape) | |
constructor | |
Collision (const NewtonCollision *collision, const World *world) | |
constructor | |
virtual | ~Collision () |
destructor | |
NewtonCollision *const | getNewtonCollision () const |
retrieve the Newton pointer | |
const World * | getWorld () const |
Ogre::AxisAlignedBox | getAABB (const Ogre::Quaternion &orient=Ogre::Quaternion::IDENTITY, const Ogre::Vector3 &pos=Ogre::Vector3::ZERO) const |
CollisionPrimitiveType | getCollisionPrimitiveType () const |
Returns the Collisiontype for this Collision. | |
NewtonCollisionInfoRecord * | getInfo () |
Returns collision info record for this collision. | |
Additional Inherited Members | |
Static Public Member Functions inherited from OgreNewt::Collision | |
static CollisionPrimitiveType | getCollisionPrimitiveType (const NewtonCollision *col) |
Returns the Collisiontype for the given Newton-Collision. | |
static NewtonCollisionInfoRecord * | getInfo (const NewtonCollision *col) |
Returns collision info record for given collision. | |
Protected Attributes inherited from OgreNewt::Collision | |
NewtonCollision * | m_col |
const World * | m_world |
Detailed Description
standard primitive Ellipsoid.
Definition at line 70 of file OgreNewt_CollisionPrimitives.h.
Constructor & Destructor Documentation
◆ Ellipsoid() [1/2]
OgreNewt::CollisionPrimitives::Ellipsoid::Ellipsoid | ( | const World * | world | ) |
constructor
Create a 'blank' ellipsoid collision object. Can be used for CollisionSerializer::importCollision
- Parameters
-
world pointer to the OgreNewt::World
Definition at line 47 of file OgreNewt_CollisionPrimitives.cpp.
◆ Ellipsoid() [2/2]
OgreNewt::CollisionPrimitives::Ellipsoid::Ellipsoid | ( | const World * | world, |
const Ogre::Vector3 & | size, | ||
int | id, | ||
const Ogre::Quaternion & | orient = Ogre::Quaternion::IDENTITY , |
||
const Ogre::Vector3 & | pos = Ogre::Vector3::ZERO |
||
) |
constructor
for a sphere, pass the same radius for all 3 axis.
- Parameters
-
world pointer to OgreNewt::World size vector representing radius for all 3 axis id an id for this shape, can be received with collision->getUserId() orient orientation offset of the primitive pos position offset of the primitive
Definition at line 51 of file OgreNewt_CollisionPrimitives.cpp.
◆ ~Ellipsoid()
|
inline |
destructor
Definition at line 93 of file OgreNewt_CollisionPrimitives.h.
The documentation for this class was generated from the following files:
- include/External/ogrenewt/OgreNewt_CollisionPrimitives.h
- src/External/ogrenewt/OgreNewt_CollisionPrimitives.cpp
Generated by 1.9.8