![]() |
OGRE 14.4
Object-Oriented Graphics Rendering Engine
|
simplified wrapper with automatic memory management More...
#include <OgreBullet.h>
simplified wrapper with automatic memory management
|
inline |
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.
mass | the mass of the object |
ent | the entity to control |
ct | the collider type |
listener | a listener to call on collision with other objects |
group | the collision group |
mask | the collision mask |
btRigidBody * Ogre::Bullet::DynamicsWorld::addKinematicRigidBody | ( | Entity * | ent, |
ColliderType | ct, | ||
int | group = 1 , |
||
int | mask = -1 |
||
) |
btRigidBody * Ogre::Bullet::DynamicsWorld::addTerrainRigidBody | ( | TerrainGroup * | terrainGroup, |
long | x, | ||
long | y, | ||
int | group = 1 , |
||
int | mask = -1 |
||
) |
Add static body for Ogre terrain.
terrainGroup | the TerrainGroup of the terrain |
x | x coordinate of the terrain slot |
y | y coordinate of the terrain slot |
group | the collision group |
mask | the collision mask |
btRigidBody * Ogre::Bullet::DynamicsWorld::addTerrainRigidBody | ( | Terrain * | terrain, |
int | group = 1 , |
||
int | mask = -1 |
||
) |
Add static body for Ogre terrain.
terrain | the terrain |
group | the collision group |
mask | the collision mask |
void Ogre::Bullet::DynamicsWorld::attachRigidBody | ( | btRigidBody * | rigidBody, |
Entity * | ent, | ||
CollisionListener * | listener = nullptr , |
||
int | group = 1 , |
||
int | mask = -1 |
||
) |
|
inline |