Maratis Engine
|
#include <MPhysicsContext.h>
Public Member Functions | |
virtual | ~MPhysicsContext (void) |
virtual void | init (const MVector3 &worldMin, const MVector3 &worldMax)=0 |
virtual void | clear (void)=0 |
virtual void | updateSimulation (void)=0 |
virtual void | setWorldGravity (const MVector3 &gravity)=0 |
virtual void | createGhost (unsigned int *objectId, unsigned int shapeId, const MVector3 &position, const MQuaternion &rotation)=0 |
virtual void | createRigidBody (unsigned int *objectId, unsigned int shapeId, const MVector3 &position, const MQuaternion &rotation, float mass)=0 |
virtual void | deleteObject (unsigned int *objectId)=0 |
virtual void | enableObjectKinematic (unsigned int objectId)=0 |
virtual void | disableObjectKinematic (unsigned int objectId)=0 |
virtual void | setObjectShape (unsigned int objectId, unsigned int shapeId)=0 |
virtual void | setObjectMass (unsigned int objectId, float mass)=0 |
virtual void | setObjectRestitution (unsigned int objectId, float restitution)=0 |
virtual void | setObjectFriction (unsigned int objectId, float friction)=0 |
virtual void | setObjectLinearFactor (unsigned int objectId, const MVector3 &linearFactor)=0 |
virtual void | setObjectAngularFactor (unsigned int objectId, float angularFactor)=0 |
virtual void | setObjectDamping (unsigned int objectId, float linearDamping, float angularDamping)=0 |
virtual void | setObjectTransform (unsigned int objectId, const MVector3 &position, const MQuaternion &rotation)=0 |
virtual void | getObjectTransform (unsigned int objectId, MVector3 *position, MQuaternion *rotation)=0 |
virtual void | addCentralForce (unsigned int objectId, const MVector3 &force)=0 |
virtual void | getCentralForce (unsigned int objectId, MVector3 *force)=0 |
virtual void | addTorque (unsigned int objectId, const MVector3 &torque)=0 |
virtual void | getTorque (unsigned int objectId, MVector3 *torque)=0 |
virtual void | clearForces (unsigned int objectId)=0 |
virtual int | isObjectInCollision (unsigned int objectId)=0 |
virtual bool | isObjectsCollision (unsigned int object1Id, unsigned int object2Id)=0 |
virtual void | createMultiShape (unsigned int *shapeId)=0 |
virtual void | createBoxShape (unsigned int *shapeId, const MVector3 &scale)=0 |
virtual void | createSphereShape (unsigned int *shapeId, float radius)=0 |
virtual void | createConeShape (unsigned int *shapeId, float radius, float height)=0 |
virtual void | createCapsuleShape (unsigned int *shapeId, float radius, float height)=0 |
virtual void | createCylinderShape (unsigned int *shapeId, float radius, float height)=0 |
virtual void | createConvexHullShape (unsigned int *shapeId, const MVector3 *vertices, unsigned int verticesNumber)=0 |
virtual void | createTriangleMeshShape (unsigned int *shapeId, const MVector3 *vertices, unsigned int verticesNumber, const void *indices, unsigned int indicesNumber, M_TYPES indicesType)=0 |
virtual void | deleteShape (unsigned int *shapeId)=0 |
virtual void | addChildShape (unsigned int multiShapeId, unsigned int shapeId, const MVector3 &position, const MQuaternion &rotation)=0 |
virtual void | createConstraint (unsigned int *constraintId, unsigned int parentObjectId, unsigned int objectId, const MVector3 &pivot, bool disableParentCollision)=0 |
virtual void | setLinearLimit (unsigned int constraintId, const MVector3 &lower, const MVector3 &upper)=0 |
virtual void | setAngularLimit (unsigned int constraintId, const MVector3 &lower, const MVector3 &upper)=0 |
virtual void | rotateConstraint (unsigned int constraintId, float angle, const MVector3 &axis)=0 |
virtual void | deleteConstraint (unsigned int *constraintId)=0 |
virtual MPhysicsContext::~MPhysicsContext | ( | void | ) | [inline, virtual] |
virtual void MPhysicsContext::addCentralForce | ( | unsigned int | objectId, |
const MVector3 & | force | ||
) | [pure virtual] |
virtual void MPhysicsContext::addChildShape | ( | unsigned int | multiShapeId, |
unsigned int | shapeId, | ||
const MVector3 & | position, | ||
const MQuaternion & | rotation | ||
) | [pure virtual] |
virtual void MPhysicsContext::addTorque | ( | unsigned int | objectId, |
const MVector3 & | torque | ||
) | [pure virtual] |
virtual void MPhysicsContext::clear | ( | void | ) | [pure virtual] |
virtual void MPhysicsContext::clearForces | ( | unsigned int | objectId | ) | [pure virtual] |
virtual void MPhysicsContext::createBoxShape | ( | unsigned int * | shapeId, |
const MVector3 & | scale | ||
) | [pure virtual] |
virtual void MPhysicsContext::createCapsuleShape | ( | unsigned int * | shapeId, |
float | radius, | ||
float | height | ||
) | [pure virtual] |
virtual void MPhysicsContext::createConeShape | ( | unsigned int * | shapeId, |
float | radius, | ||
float | height | ||
) | [pure virtual] |
virtual void MPhysicsContext::createConstraint | ( | unsigned int * | constraintId, |
unsigned int | parentObjectId, | ||
unsigned int | objectId, | ||
const MVector3 & | pivot, | ||
bool | disableParentCollision | ||
) | [pure virtual] |
virtual void MPhysicsContext::createConvexHullShape | ( | unsigned int * | shapeId, |
const MVector3 * | vertices, | ||
unsigned int | verticesNumber | ||
) | [pure virtual] |
virtual void MPhysicsContext::createCylinderShape | ( | unsigned int * | shapeId, |
float | radius, | ||
float | height | ||
) | [pure virtual] |
virtual void MPhysicsContext::createGhost | ( | unsigned int * | objectId, |
unsigned int | shapeId, | ||
const MVector3 & | position, | ||
const MQuaternion & | rotation | ||
) | [pure virtual] |
virtual void MPhysicsContext::createMultiShape | ( | unsigned int * | shapeId | ) | [pure virtual] |
virtual void MPhysicsContext::createRigidBody | ( | unsigned int * | objectId, |
unsigned int | shapeId, | ||
const MVector3 & | position, | ||
const MQuaternion & | rotation, | ||
float | mass | ||
) | [pure virtual] |
virtual void MPhysicsContext::createSphereShape | ( | unsigned int * | shapeId, |
float | radius | ||
) | [pure virtual] |
virtual void MPhysicsContext::createTriangleMeshShape | ( | unsigned int * | shapeId, |
const MVector3 * | vertices, | ||
unsigned int | verticesNumber, | ||
const void * | indices, | ||
unsigned int | indicesNumber, | ||
M_TYPES | indicesType | ||
) | [pure virtual] |
virtual void MPhysicsContext::deleteConstraint | ( | unsigned int * | constraintId | ) | [pure virtual] |
virtual void MPhysicsContext::deleteObject | ( | unsigned int * | objectId | ) | [pure virtual] |
virtual void MPhysicsContext::deleteShape | ( | unsigned int * | shapeId | ) | [pure virtual] |
virtual void MPhysicsContext::disableObjectKinematic | ( | unsigned int | objectId | ) | [pure virtual] |
virtual void MPhysicsContext::enableObjectKinematic | ( | unsigned int | objectId | ) | [pure virtual] |
virtual void MPhysicsContext::getCentralForce | ( | unsigned int | objectId, |
MVector3 * | force | ||
) | [pure virtual] |
virtual void MPhysicsContext::getObjectTransform | ( | unsigned int | objectId, |
MVector3 * | position, | ||
MQuaternion * | rotation | ||
) | [pure virtual] |
virtual void MPhysicsContext::getTorque | ( | unsigned int | objectId, |
MVector3 * | torque | ||
) | [pure virtual] |
virtual void MPhysicsContext::init | ( | const MVector3 & | worldMin, |
const MVector3 & | worldMax | ||
) | [pure virtual] |
virtual int MPhysicsContext::isObjectInCollision | ( | unsigned int | objectId | ) | [pure virtual] |
virtual bool MPhysicsContext::isObjectsCollision | ( | unsigned int | object1Id, |
unsigned int | object2Id | ||
) | [pure virtual] |
virtual void MPhysicsContext::rotateConstraint | ( | unsigned int | constraintId, |
float | angle, | ||
const MVector3 & | axis | ||
) | [pure virtual] |
virtual void MPhysicsContext::setAngularLimit | ( | unsigned int | constraintId, |
const MVector3 & | lower, | ||
const MVector3 & | upper | ||
) | [pure virtual] |
virtual void MPhysicsContext::setLinearLimit | ( | unsigned int | constraintId, |
const MVector3 & | lower, | ||
const MVector3 & | upper | ||
) | [pure virtual] |
virtual void MPhysicsContext::setObjectAngularFactor | ( | unsigned int | objectId, |
float | angularFactor | ||
) | [pure virtual] |
virtual void MPhysicsContext::setObjectDamping | ( | unsigned int | objectId, |
float | linearDamping, | ||
float | angularDamping | ||
) | [pure virtual] |
virtual void MPhysicsContext::setObjectFriction | ( | unsigned int | objectId, |
float | friction | ||
) | [pure virtual] |
virtual void MPhysicsContext::setObjectLinearFactor | ( | unsigned int | objectId, |
const MVector3 & | linearFactor | ||
) | [pure virtual] |
virtual void MPhysicsContext::setObjectMass | ( | unsigned int | objectId, |
float | mass | ||
) | [pure virtual] |
virtual void MPhysicsContext::setObjectRestitution | ( | unsigned int | objectId, |
float | restitution | ||
) | [pure virtual] |
virtual void MPhysicsContext::setObjectShape | ( | unsigned int | objectId, |
unsigned int | shapeId | ||
) | [pure virtual] |
virtual void MPhysicsContext::setObjectTransform | ( | unsigned int | objectId, |
const MVector3 & | position, | ||
const MQuaternion & | rotation | ||
) | [pure virtual] |
virtual void MPhysicsContext::setWorldGravity | ( | const MVector3 & | gravity | ) | [pure virtual] |
virtual void MPhysicsContext::updateSimulation | ( | void | ) | [pure virtual] |