SO3Engine
|
OgreNewt::CollisionPrimitives::CompoundCollision Class Reference
create a compound from several collision pieces. More...
#include <OgreNewt_CollisionPrimitives.h>
Inheritance diagram for OgreNewt::CollisionPrimitives::CompoundCollision:
Public Member Functions | |
CompoundCollision (const World *world) | |
constructor | |
CompoundCollision (const World *world, std::vector< OgreNewt::CollisionPtr > col_array, int id) | |
constructor | |
~CompoundCollision () | |
destructor | |
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
create a compound from several collision pieces.
Definition at line 431 of file OgreNewt_CollisionPrimitives.h.
Constructor & Destructor Documentation
◆ CompoundCollision() [1/2]
OgreNewt::CollisionPrimitives::CompoundCollision::CompoundCollision | ( | const World * | world | ) |
constructor
Create a 'blank' ellipsoid compoundcollision object. Can be used for CollisionSerializer::importCollision
- Parameters
-
world pointer to the OgreNewt::World
Definition at line 1149 of file OgreNewt_CollisionPrimitives.cpp.
◆ CompoundCollision() [2/2]
OgreNewt::CollisionPrimitives::CompoundCollision::CompoundCollision | ( | const World * | world, |
std::vector< OgreNewt::CollisionPtr > | col_array, | ||
int | id | ||
) |
constructor
creates a compound collision object made from an array of simple primitive parts. can be used to make very complex collision shapes.
- Parameters
-
world pointer to the OgreNewt::World col_array std::vector of pointers to existing collision objects. id an id for this shape, can be received with collision->getUserId()
Definition at line 1152 of file OgreNewt_CollisionPrimitives.cpp.
◆ ~CompoundCollision()
|
inline |
destructor
Definition at line 452 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