20Collision::Collision(
const NewtonCollision* collision,
const World* world) : m_world(world), m_col(NewtonCollisionCreateInstance(collision))
28 NewtonDestroyCollision(
m_col);
32Ogre::AxisAlignedBox
Collision::getAABB(
const Ogre::Quaternion& orient,
const Ogre::Vector3& pos )
const
34 Ogre::AxisAlignedBox box;
52 NewtonCollisionInfoRecord *info =
new NewtonCollisionInfoRecord();
54 NewtonCollisionGetInfo( col, info );
61 NewtonCollisionInfoRecord *info =
new NewtonCollisionInfoRecord();
63 NewtonCollisionGetInfo( col, info );
represents a shape for collision detection
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.
virtual ~Collision()
destructor
Collision(const World *world)
constructor
represents a collision shape that is explicitly convex.
ConvexCollision(const World *world)
constructor
~ConvexCollision()
destructor
represents a physics world.
NewtonWorld * getNewtonWorld() const
retrieves a pointer to the NewtonWorld