Blender V2.61 - r43446
|
#include <DummyPhysicsEnvironment.h>
Public Member Functions | |
DummyPhysicsEnvironment () | |
virtual | ~DummyPhysicsEnvironment () |
virtual void | beginFrame () |
virtual void | endFrame () |
virtual bool | proceedDeltaTime (double curTime, float timeStep, float interval) |
Perform an integration step of duration 'timeStep'. | |
virtual void | setFixedTimeStep (bool useFixedTimeStep, float fixedTimeStep) |
virtual float | getFixedTimeStep () |
virtual void | setGravity (float x, float y, float z) |
virtual int | createConstraint (class PHY_IPhysicsController *ctrl, class PHY_IPhysicsController *ctrl2, PHY_ConstraintType type, float pivotX, float pivotY, float pivotZ, float axisX, float axisY, float axisZ, float axis1X=0, float axis1Y=0, float axis1Z=0, float axis2X=0, float axis2Y=0, float axis2Z=0, int flag=0) |
virtual void | removeConstraint (int constraintid) |
virtual PHY_IVehicle * | getVehicleConstraint (int constraintId) |
virtual PHY_IPhysicsController * | rayTest (PHY_IRayCastFilterCallback &filterCallback, float fromX, float fromY, float fromZ, float toX, float toY, float toZ) |
virtual bool | cullingTest (PHY_CullingCallback callback, void *userData, PHY__Vector4 *planes, int nplanes, int occlusionRes) |
virtual void | addSensor (PHY_IPhysicsController *ctrl) |
virtual void | removeSensor (PHY_IPhysicsController *ctrl) |
virtual void | addTouchCallback (int response_class, PHY_ResponseCallback callback, void *user) |
virtual bool | requestCollisionCallback (PHY_IPhysicsController *ctrl) |
virtual bool | removeCollisionCallback (PHY_IPhysicsController *ctrl) |
virtual PHY_IPhysicsController * | CreateSphereController (float radius, const PHY__Vector3 &position) |
virtual PHY_IPhysicsController * | CreateConeController (float coneradius, float coneheight) |
virtual void | setConstraintParam (int constraintId, int param, float value, float value1) |
virtual float | getConstraintParam (int constraintId, int param) |
DummyPhysicsEnvironment is an empty placeholder Alternatives are ODE,Sumo and Dynamo PhysicsEnvironments Use DummyPhysicsEnvironment as a base to integrate your own physics engine Physics Environment takes care of stepping the simulation and is a container for physics entities (rigidbodies,constraints, materials etc.)
A derived class may be able to 'construct' entities by loading and/or converting
Definition at line 45 of file DummyPhysicsEnvironment.h.
DummyPhysicsEnvironment::DummyPhysicsEnvironment | ( | ) |
Definition at line 38 of file DummyPhysicsEnvironment.cpp.
DummyPhysicsEnvironment::~DummyPhysicsEnvironment | ( | ) | [virtual] |
Definition at line 45 of file DummyPhysicsEnvironment.cpp.
virtual void DummyPhysicsEnvironment::addSensor | ( | PHY_IPhysicsController * | ctrl | ) | [inline, virtual] |
Implements PHY_IPhysicsEnvironment.
Definition at line 80 of file DummyPhysicsEnvironment.h.
virtual void DummyPhysicsEnvironment::addTouchCallback | ( | int | response_class, |
PHY_ResponseCallback | callback, | ||
void * | user | ||
) | [inline, virtual] |
Implements PHY_IPhysicsEnvironment.
Definition at line 82 of file DummyPhysicsEnvironment.h.
void DummyPhysicsEnvironment::beginFrame | ( | ) | [virtual] |
Implements PHY_IPhysicsEnvironment.
Definition at line 50 of file DummyPhysicsEnvironment.cpp.
virtual PHY_IPhysicsController* DummyPhysicsEnvironment::CreateConeController | ( | float | coneradius, |
float | coneheight | ||
) | [inline, virtual] |
Implements PHY_IPhysicsEnvironment.
Definition at line 88 of file DummyPhysicsEnvironment.h.
int DummyPhysicsEnvironment::createConstraint | ( | class PHY_IPhysicsController * | ctrl, |
class PHY_IPhysicsController * | ctrl2, | ||
PHY_ConstraintType | type, | ||
float | pivotX, | ||
float | pivotY, | ||
float | pivotZ, | ||
float | axisX, | ||
float | axisY, | ||
float | axisZ, | ||
float | axis1X = 0 , |
||
float | axis1Y = 0 , |
||
float | axis1Z = 0 , |
||
float | axis2X = 0 , |
||
float | axis2Y = 0 , |
||
float | axis2Z = 0 , |
||
int | flag = 0 |
||
) | [virtual] |
Implements PHY_IPhysicsEnvironment.
Definition at line 94 of file DummyPhysicsEnvironment.cpp.
virtual PHY_IPhysicsController* DummyPhysicsEnvironment::CreateSphereController | ( | float | radius, |
const PHY__Vector3 & | position | ||
) | [inline, virtual] |
Implements PHY_IPhysicsEnvironment.
Definition at line 87 of file DummyPhysicsEnvironment.h.
virtual bool DummyPhysicsEnvironment::cullingTest | ( | PHY_CullingCallback | callback, |
void * | userData, | ||
PHY__Vector4 * | planes, | ||
int | nplanes, | ||
int | occlusionRes | ||
) | [inline, virtual] |
Implements PHY_IPhysicsEnvironment.
Definition at line 76 of file DummyPhysicsEnvironment.h.
void DummyPhysicsEnvironment::endFrame | ( | ) | [virtual] |
Implements PHY_IPhysicsEnvironment.
Definition at line 55 of file DummyPhysicsEnvironment.cpp.
virtual float DummyPhysicsEnvironment::getConstraintParam | ( | int | constraintId, |
int | param | ||
) | [inline, virtual] |
Implements PHY_IPhysicsEnvironment.
Definition at line 94 of file DummyPhysicsEnvironment.h.
float DummyPhysicsEnvironment::getFixedTimeStep | ( | ) | [virtual] |
Implements PHY_IPhysicsEnvironment.
Definition at line 76 of file DummyPhysicsEnvironment.cpp.
virtual PHY_IVehicle* DummyPhysicsEnvironment::getVehicleConstraint | ( | int | constraintId | ) | [inline, virtual] |
Implements PHY_IPhysicsEnvironment.
Definition at line 70 of file DummyPhysicsEnvironment.h.
bool DummyPhysicsEnvironment::proceedDeltaTime | ( | double | curTime, |
float | timeStep, | ||
float | interval | ||
) | [virtual] |
Perform an integration step of duration 'timeStep'.
Implements PHY_IPhysicsEnvironment.
Definition at line 62 of file DummyPhysicsEnvironment.cpp.
PHY_IPhysicsController * DummyPhysicsEnvironment::rayTest | ( | PHY_IRayCastFilterCallback & | filterCallback, |
float | fromX, | ||
float | fromY, | ||
float | fromZ, | ||
float | toX, | ||
float | toY, | ||
float | toZ | ||
) | [virtual] |
Implements PHY_IPhysicsEnvironment.
Definition at line 113 of file DummyPhysicsEnvironment.cpp.
References NULL.
virtual bool DummyPhysicsEnvironment::removeCollisionCallback | ( | PHY_IPhysicsController * | ctrl | ) | [inline, virtual] |
Implements PHY_IPhysicsEnvironment.
Definition at line 86 of file DummyPhysicsEnvironment.h.
void DummyPhysicsEnvironment::removeConstraint | ( | int | constraintid | ) | [virtual] |
Implements PHY_IPhysicsEnvironment.
Definition at line 106 of file DummyPhysicsEnvironment.cpp.
virtual void DummyPhysicsEnvironment::removeSensor | ( | PHY_IPhysicsController * | ctrl | ) | [inline, virtual] |
Implements PHY_IPhysicsEnvironment.
Definition at line 81 of file DummyPhysicsEnvironment.h.
virtual bool DummyPhysicsEnvironment::requestCollisionCallback | ( | PHY_IPhysicsController * | ctrl | ) | [inline, virtual] |
Implements PHY_IPhysicsEnvironment.
Definition at line 85 of file DummyPhysicsEnvironment.h.
virtual void DummyPhysicsEnvironment::setConstraintParam | ( | int | constraintId, |
int | param, | ||
float | value, | ||
float | value1 | ||
) | [inline, virtual] |
Implements PHY_IPhysicsEnvironment.
Definition at line 90 of file DummyPhysicsEnvironment.h.
void DummyPhysicsEnvironment::setFixedTimeStep | ( | bool | useFixedTimeStep, |
float | fixedTimeStep | ||
) | [virtual] |
Implements PHY_IPhysicsEnvironment.
Definition at line 72 of file DummyPhysicsEnvironment.cpp.
void DummyPhysicsEnvironment::setGravity | ( | float | x, |
float | y, | ||
float | z | ||
) | [virtual] |
Implements PHY_IPhysicsEnvironment.
Definition at line 84 of file DummyPhysicsEnvironment.cpp.