iPcGravity Struct Reference
Gravity handling property class. More...
#include <propclass/gravity.h>
Public Member Functions | |
virtual void | ApplyForce (const csVector3 &force, float time)=0 |
Apply a non-permanent force. | |
virtual void | ApplyPermanentForce (const csVector3 &force)=0 |
Apply an permanent force. | |
virtual void | ClearForces ()=0 |
Clear all non-permanent forces. | |
virtual void | ClearPermanentForces ()=0 |
Clear all permanent forces. | |
virtual void | CreateGravityCollider (const csVector3 &dim, const csVector3 &offs)=0 |
Create a gravity collider with the specified dimensions. | |
virtual void | CreateGravityCollider (iPcMesh *mesh)=0 |
Create a gravity collider from the given mesh. | |
virtual iCollider * | GetGravityCollider ()=0 |
Get the gravity collider. | |
virtual iPcMovable * | GetMovable ()=0 |
Get the current movable. | |
virtual iPcSolid * | GetSolid ()=0 |
Get the current solid. | |
virtual float | GetWeight () const =0 |
Get the weight of this object. | |
virtual bool | IsActive () const =0 |
Check activation status. | |
virtual bool | IsResting () const =0 |
Return true if object is resting. | |
virtual void | ResetSpeed ()=0 |
Reset speed (but leave forces alone). | |
virtual void | SetActive (bool activate)=0 |
Activate/deactivate physics handling for this object. | |
virtual void | SetMovable (iPcMovable *movable)=0 |
Set the movable on which we will operate. | |
virtual void | SetSolid (iPcSolid *solid)=0 |
Set the solid representation which we will additionally use for collision detection. | |
virtual void | SetWeight (float w)=0 |
Set the weight of this object. |
Detailed Description
Gravity handling property class.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):
- ApplyPermanentForce: parameters 'force' (csVector3).
This property class supports the following properties (add prefix 'cel.property.' to get the ID of the property):
- weight (float, read/write): the weight of the object.
Definition at line 50 of file gravity.h.
Member Function Documentation
|
Apply a non-permanent force.
|
|
Apply an permanent force.
|
|
Clear all non-permanent forces.
|
|
Clear all permanent forces.
|
|
Create a gravity collider with the specified dimensions.
|
|
Create a gravity collider from the given mesh. A gravity collider is a small box at the bottom of the mesh. |
|
Get the gravity collider. If this returns 0 we have no gravity collider. |
|
Get the current movable.
|
|
Get the current solid.
|
|
Get the weight of this object.
|
|
Check activation status.
|
|
Return true if object is resting. This happens when the object did not move the last time physics was checked. |
|
Reset speed (but leave forces alone).
|
|
Activate/deactivate physics handling for this object.
|
|
Set the movable on which we will operate. If not set then a default movable will be found and used instead. |
|
Set the solid representation which we will additionally use for collision detection. If not set then we will find the default solid. |
|
Set the weight of this object.
|
The documentation for this struct was generated from the following file:
- propclass/gravity.h
Generated for CEL: Crystal Entity Layer by doxygen 1.4.6