OGRE  14.2
Object-Oriented Graphics Rendering Engine
Ogre::Bullet::DynamicsWorld Class Reference

simplified wrapper with automatic memory management More...

#include <OgreBullet.h>

+ Inheritance diagram for Ogre::Bullet::DynamicsWorld:

Public Member Functions

 DynamicsWorld (btDynamicsWorld *btWorld)
 DynamicsWorld (const Vector3 &gravity)
btRigidBody * addRigidBody (float mass, Entity *ent, ColliderType ct, CollisionListener *listener=nullptr, int group=1, int mask=-1)
 Add an Entity as a rigid body to the DynamicsWorld. More...
btDynamicsWorld * getBtWorld () const
- Public Member Functions inherited from Ogre::Bullet::CollisionWorld
 CollisionWorld (btCollisionWorld *btWorld)
virtual ~CollisionWorld ()
btCollisionObject * addCollisionObject (Entity *ent, ColliderType ct, int group=1, int mask=-1)
void rayTest (const Ray &ray, RayResultCallback *callback, float maxDist=1000)

Detailed Description

simplified wrapper with automatic memory management

Constructor & Destructor Documentation

◆ DynamicsWorld() [1/2]

Ogre::Bullet::DynamicsWorld::DynamicsWorld ( const Vector3 gravity)

◆ DynamicsWorld() [2/2]

Ogre::Bullet::DynamicsWorld::DynamicsWorld ( btDynamicsWorld *  btWorld)

Member Function Documentation

◆ addRigidBody()

btRigidBody* Ogre::Bullet::DynamicsWorld::addRigidBody ( float  mass,
Entity ent,
ColliderType  ct,
CollisionListener listener = nullptr,
int  group = 1,
int  mask = -1 

Add an Entity as a rigid body to the DynamicsWorld.

massthe mass of the object
entthe entity to control
ctthe collider type
listenera listener to call on collision with other objects
groupthe collision group
maskthe collision mask

◆ getBtWorld()

btDynamicsWorld* Ogre::Bullet::DynamicsWorld::getBtWorld ( ) const

The documentation for this class was generated from the following file: