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

simplified wrapper with automatic memory management More...

#include <OgreBullet.h>

Public Member Functions

 DynamicsWorld (btDynamicsWorld *btWorld)
 
 DynamicsWorld (const Vector3 &gravity)
 
 ~DynamicsWorld ()
 
btRigidBody * addRigidBody (float mass, Entity *ent, ColliderType ct, CollisionListener *listener=nullptr, int group=1, int mask=-1)
 
btDynamicsWorld * getBtWorld () const
 
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()

Ogre::Bullet::DynamicsWorld::~DynamicsWorld ( )

◆ 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 
)

◆ getBtWorld()

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

◆ rayTest()

void Ogre::Bullet::DynamicsWorld::rayTest ( const Ray ray,
RayResultCallback callback,
float  maxDist = 1000 
)

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