iPcMechanicsSystem Struct Reference
Property class representing a dynamic system. More...
#include <propclass/mechsys.h>
Public Member Functions | |
virtual void | AddBodyToGroup (iRigidBody *body, const char *group)=0 |
Add a body to the specified group. | |
virtual void | AddForceDuration (iPcMechanicsObject *pcobject, const csVector3 &force, bool relative, const csVector3 &position, float seconds)=0 |
During the specified time (in milliseconds) add the force every step to the given body. | |
virtual void | AddForceFrame (iPcMechanicsObject *pcobject, const csVector3 &force, bool relative, const csVector3 &position)=0 |
During the next frame add the force every step. | |
virtual void | AddForceTagged (iPcMechanicsObject *pcobject, const csVector3 &force, bool relative, const csVector3 &position, uint32 forceid)=0 |
Add a force with the given tag, to be manually removed later. | |
virtual void | ClearAllForces ()=0 |
Clear all forces. | |
virtual void | ClearForces (iPcMechanicsObject *pcobject)=0 |
Remove the given body from the force queues (filled with AddForceFrame() and AddForceDuration()). | |
virtual csPtr< iRigidBody > | CreateBody ()=0 |
Create an iRigidBody and add it to the system. | |
virtual iJoint * | CreateJoint (iRigidBody *body1, iRigidBody *body2)=0 |
Create a joint between the two given bodies. | |
virtual void | DisableStepFast ()=0 |
Disable fast stepping. | |
virtual void | EnableQuickStep ()=0 |
Very fast but not accurate. | |
virtual void | EnableStepFast ()=0 |
Enable fast stepping. | |
virtual iDynamicSystem * | GetDynamicSystem ()=0 |
Get the dynamic system. | |
virtual const csVector3 | GetGravity ()=0 |
Get the current gravity. | |
virtual float | GetStepTime () const =0 |
Get the current step time. | |
virtual void | RemoveBody (iRigidBody *body)=0 |
Remove a given iRigidBody from the system. | |
virtual void | RemoveBodyFromGroup (iRigidBody *body, const char *group)=0 |
Remove a body from the specified group. | |
virtual void | RemoveForceTagged (iPcMechanicsObject *pcobject, uint32 forceid)=0 |
Remove the force with the given tag. | |
virtual void | RemoveJoint (iJoint *joint)=0 |
Remove a given joint from the system. | |
virtual void | SetDynamicSystem (const char *dynsysname)=0 |
Set the dynamic system. | |
virtual void | SetDynamicSystem (iDynamicSystem *dynsys)=0 |
Set the dynamic system. | |
virtual void | SetGravity (const csVector3 &grav)=0 |
Define the gravity for the system. | |
virtual void | SetStepTime (float delta)=0 |
Define the time we want for one step. |
Detailed Description
Property class representing a dynamic system.This property class supports the following actions (add prefix 'cel.action.' to get the ID of the action and add prefix 'cel.parameter.' to get the ID of the parameter):
- SetSystem: parameters 'dynsys' (string).
- SetGravity: parameters 'gravity' (float).
- SetStepTime: parameters 'time' (float).
- QuickStep: no parameters.
- EnableStepFast: no parameters.
- DisableStepFast: no parameters.
Definition at line 56 of file mechsys.h.
Member Function Documentation
|
Add a body to the specified group.
|
|
During the specified time (in milliseconds) add the force every step to the given body. This function is called by iPcMechanicsObject::AddForceDuration().
|
|
During the next frame add the force every step. This function is called by iPcMechanicsObject::AddForceFrame().
|
|
Add a force with the given tag, to be manually removed later. This function is called by iPcMechanicsObject::AddForceTagged().
|
|
Clear all forces.
|
|
Remove the given body from the force queues (filled with AddForceFrame() and AddForceDuration()).
|
|
Create an iRigidBody and add it to the system.
|
|
Create a joint between the two given bodies.
|
|
Disable fast stepping. This is very accurate but can quickly break with lots of objects. |
|
Very fast but not accurate.
|
|
Enable fast stepping. This is a lot faster then DisableStepFast(). Default. |
|
Get the dynamic system.
|
|
Get the current gravity.
|
|
Get the current step time.
|
|
Remove a given iRigidBody from the system.
|
|
Remove a body from the specified group.
|
|
Remove the force with the given tag. This function is called by iPcMechanicsObject::RemoveForceTagged().
|
|
Remove a given joint from the system.
|
|
Set the dynamic system.
|
|
Set the dynamic system.
|
|
Define the gravity for the system. By default this is (0,-9.8,0).
|
|
Define the time we want for one step. By default this is 0.01 milliseconds.
|
The documentation for this struct was generated from the following file:
- propclass/mechsys.h
Generated for CEL: Crystal Entity Layer by doxygen 1.4.6