OGRE 14.3
Object-Oriented Graphics Rendering Engine
Loading...
Searching...
No Matches
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)
 
btRigidBodyaddRigidBody (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.
 
btDynamicsWorldgetBtWorld () const
 
- Public Member Functions inherited from Ogre::Bullet::CollisionWorld
 CollisionWorld (btCollisionWorld *btWorld)
 
virtual ~CollisionWorld ()
 
btCollisionObjectaddCollisionObject (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)
explicit

◆ DynamicsWorld() [2/2]

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

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.

Parameters
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
inline

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