Contents
- 1 API
- 1.1 virtual MPhysicsContext::~MPhysicsContext(void)
- 1.2 virtual void MPhysicsContext::init(const MVector3 &worldMin, const MVector3 &worldMax)=0
- 1.3 virtual void MPhysicsContext::clear(void)=0
- 1.4 virtual void MPhysicsContext::setSimulationQuality(unsigned int quality)=0
- 1.5 virtual void MPhysicsContext::updateSimulation(void)=0
- 1.6 virtual void MPhysicsContext::setWorldGravity(const MVector3 &gravity)=0
- 1.7 virtual void MPhysicsContext::createGhost(unsigned int *objectId, unsigned int shapeId, const MVector3 &position, const MQuaternion &rotation)=0
- 1.8 virtual void MPhysicsContext::createRigidBody(unsigned int *objectId, unsigned int shapeId, const MVector3 &position, const MQuaternion &rotation, float mass)=0
- 1.9 virtual void MPhysicsContext::activateObject(unsigned int objectId)=0
- 1.10 virtual void MPhysicsContext::deactivateObject(unsigned int objectId)=0
- 1.11 virtual void MPhysicsContext::deleteObject(unsigned int *objectId)=0
- 1.12 virtual void MPhysicsContext::enableObjectKinematic(unsigned int objectId)=0
- 1.13 virtual void MPhysicsContext::disableObjectKinematic(unsigned int objectId)=0
- 1.14 virtual void MPhysicsContext::setObjectShape(unsigned int objectId, unsigned int shapeId)=0
- 1.15 virtual void MPhysicsContext::setObjectMass(unsigned int objectId, float mass)=0
- 1.16 virtual void MPhysicsContext::setObjectRestitution(unsigned int objectId, float restitution)=0
- 1.17 virtual void MPhysicsContext::setObjectFriction(unsigned int objectId, float friction)=0
- 1.18 virtual void MPhysicsContext::setObjectLinearFactor(unsigned int objectId, const MVector3 &linearFactor)=0
- 1.19 virtual void MPhysicsContext::setObjectAngularFactor(unsigned int objectId, float angularFactor)=0
- 1.20 virtual void MPhysicsContext::setObjectDamping(unsigned int objectId, float linearDamping, float angularDamping)=0
- 1.21 virtual void MPhysicsContext::setObjectTransform(unsigned int objectId, const MVector3 &position, const MQuaternion &rotation)=0
- 1.22 virtual void MPhysicsContext::getObjectTransform(unsigned int objectId, MVector3 *position, MQuaternion *rotation)=0
- 1.23 virtual void MPhysicsContext::setObjectUserPointer(unsigned int objectId, void *userPointer)=0
- 1.24 virtual void* MPhysicsContext::getObjectUserPointer(unsigned int objectId)=0
- 1.25 virtual void MPhysicsContext::addCentralForce(unsigned int objectId, const MVector3 &force)=0
- 1.26 virtual void MPhysicsContext::getCentralForce(unsigned int objectId, MVector3 *force)=0
- 1.27 virtual void MPhysicsContext::addTorque(unsigned int objectId, const MVector3 &torque)=0
- 1.28 virtual void MPhysicsContext::getTorque(unsigned int objectId, MVector3 *torque)=0
- 1.29 virtual void MPhysicsContext::clearForces(unsigned int objectId)=0
- 1.30 virtual int MPhysicsContext::isObjectInCollision(unsigned int objectId, unsigned int *collisionList=NULL, unsigned int size=0)=0
- 1.31 virtual bool MPhysicsContext::isObjectsCollision(unsigned int object1Id, unsigned int object2Id)=0
- 1.32 virtual bool MPhysicsContext::isRayHit(const MVector3 &start, const MVector3 &end, unsigned int *objectId=NULL, MVector3 *point=NULL, MVector3 *normal=NULL)=0
- 1.33 virtual void MPhysicsContext::createMultiShape(unsigned int *shapeId)=0
- 1.34 virtual void MPhysicsContext::createBoxShape(unsigned int *shapeId, const MVector3 &scale)=0
- 1.35 virtual void MPhysicsContext::createSphereShape(unsigned int *shapeId, float radius)=0
- 1.36 virtual void MPhysicsContext::createConeShape(unsigned int *shapeId, float radius, float height)=0
- 1.37 virtual void MPhysicsContext::createCapsuleShape(unsigned int *shapeId, float radius, float height)=0
- 1.38 virtual void MPhysicsContext::createCylinderShape(unsigned int *shapeId, float radius, float height)=0
- 1.39 virtual void MPhysicsContext::createConvexHullShape(unsigned int *shapeId, const MVector3 *vertices, unsigned int verticesNumber, const MVector3 scale=MVector3(1))=0
- 1.40 virtual void MPhysicsContext::createTriangleMeshShape(unsigned int *shapeId, const MVector3 *vertices, unsigned int verticesNumber, const void *indices, unsigned int indicesNumber, M_TYPES indicesType, const MVector3 scale=MVector3(1))=0
- 1.41 virtual void MPhysicsContext::deleteShape(unsigned int *shapeId)=0
- 1.42 virtual void MPhysicsContext::addChildShape(unsigned int multiShapeId, unsigned int shapeId, const MVector3 &position, const MQuaternion &rotation)=0
- 1.43 virtual void MPhysicsContext::createConstraint(unsigned int *constraintId, unsigned int parentObjectId, unsigned int objectId, const MVector3 &pivot, bool disableParentCollision)=0
- 1.44 virtual void MPhysicsContext::setLinearLimit(unsigned int constraintId, const MVector3 &lower, const MVector3 &upper)=0
- 1.45 virtual void MPhysicsContext::setAngularLimit(unsigned int constraintId, const MVector3 &lower, const MVector3 &upper)=0
- 1.46 virtual void MPhysicsContext::deleteConstraint(unsigned int *constraintId)=0
|
API
virtual MPhysicsContext::~MPhysicsContext(void)
virtual void MPhysicsContext::init(const MVector3 &worldMin, const MVector3 &worldMax)=0
virtual void MPhysicsContext::clear(void)=0
virtual void MPhysicsContext::setSimulationQuality(unsigned int quality)=0
virtual void MPhysicsContext::updateSimulation(void)=0
virtual void MPhysicsContext::setWorldGravity(const MVector3 &gravity)=0
virtual void MPhysicsContext::createGhost(unsigned int *objectId, unsigned int shapeId, const MVector3 &position, const MQuaternion &rotation)=0
virtual void MPhysicsContext::createRigidBody(unsigned int *objectId, unsigned int shapeId, const MVector3 &position, const MQuaternion &rotation, float mass)=0
virtual void MPhysicsContext::activateObject(unsigned int objectId)=0
virtual void MPhysicsContext::deactivateObject(unsigned int objectId)=0
virtual void MPhysicsContext::deleteObject(unsigned int *objectId)=0
virtual void MPhysicsContext::enableObjectKinematic(unsigned int objectId)=0
virtual void MPhysicsContext::disableObjectKinematic(unsigned int objectId)=0
virtual void MPhysicsContext::setObjectShape(unsigned int objectId, unsigned int shapeId)=0
virtual void MPhysicsContext::setObjectMass(unsigned int objectId, float mass)=0
virtual void MPhysicsContext::setObjectRestitution(unsigned int objectId, float restitution)=0
virtual void MPhysicsContext::setObjectFriction(unsigned int objectId, float friction)=0
virtual void MPhysicsContext::setObjectLinearFactor(unsigned int objectId, const MVector3 &linearFactor)=0
virtual void MPhysicsContext::setObjectAngularFactor(unsigned int objectId, float angularFactor)=0
virtual void MPhysicsContext::setObjectDamping(unsigned int objectId, float linearDamping, float angularDamping)=0
virtual void MPhysicsContext::setObjectTransform(unsigned int objectId, const MVector3 &position, const MQuaternion &rotation)=0
virtual void MPhysicsContext::getObjectTransform(unsigned int objectId, MVector3 *position, MQuaternion *rotation)=0
virtual void MPhysicsContext::setObjectUserPointer(unsigned int objectId, void *userPointer)=0
virtual void* MPhysicsContext::getObjectUserPointer(unsigned int objectId)=0
virtual void MPhysicsContext::addCentralForce(unsigned int objectId, const MVector3 &force)=0
virtual void MPhysicsContext::getCentralForce(unsigned int objectId, MVector3 *force)=0
virtual void MPhysicsContext::addTorque(unsigned int objectId, const MVector3 &torque)=0
virtual void MPhysicsContext::getTorque(unsigned int objectId, MVector3 *torque)=0
virtual void MPhysicsContext::clearForces(unsigned int objectId)=0
virtual int MPhysicsContext::isObjectInCollision(unsigned int objectId, unsigned int *collisionList=NULL, unsigned int size=0)=0
virtual bool MPhysicsContext::isObjectsCollision(unsigned int object1Id, unsigned int object2Id)=0
virtual bool MPhysicsContext::isRayHit(const MVector3 &start, const MVector3 &end, unsigned int *objectId=NULL, MVector3 *point=NULL, MVector3 *normal=NULL)=0
virtual void MPhysicsContext::createMultiShape(unsigned int *shapeId)=0
virtual void MPhysicsContext::createBoxShape(unsigned int *shapeId, const MVector3 &scale)=0
virtual void MPhysicsContext::createSphereShape(unsigned int *shapeId, float radius)=0
virtual void MPhysicsContext::createConeShape(unsigned int *shapeId, float radius, float height)=0
virtual void MPhysicsContext::createCapsuleShape(unsigned int *shapeId, float radius, float height)=0
virtual void MPhysicsContext::createCylinderShape(unsigned int *shapeId, float radius, float height)=0
virtual void MPhysicsContext::createConvexHullShape(unsigned int *shapeId, const MVector3 *vertices, unsigned int verticesNumber, const MVector3 scale=MVector3(1))=0
virtual void MPhysicsContext::createTriangleMeshShape(unsigned int *shapeId, const MVector3 *vertices, unsigned int verticesNumber, const void *indices, unsigned int indicesNumber, M_TYPES indicesType, const MVector3 scale=MVector3(1))=0
virtual void MPhysicsContext::deleteShape(unsigned int *shapeId)=0
virtual void MPhysicsContext::addChildShape(unsigned int multiShapeId, unsigned int shapeId, const MVector3 &position, const MQuaternion &rotation)=0
virtual void MPhysicsContext::createConstraint(unsigned int *constraintId, unsigned int parentObjectId, unsigned int objectId, const MVector3 &pivot, bool disableParentCollision)=0
virtual void MPhysicsContext::setLinearLimit(unsigned int constraintId, const MVector3 &lower, const MVector3 &upper)=0
virtual void MPhysicsContext::setAngularLimit(unsigned int constraintId, const MVector3 &lower, const MVector3 &upper)=0
virtual void MPhysicsContext::deleteConstraint(unsigned int *constraintId)=0