CS::Physics::iRigidBodyFactory Struct Reference
Collection of all properties of a rigid body. More...
#include <ivaria/physics.h>

Public Member Functions | |
| virtual csPtr < CS::Physics::iRigidBody > | CreateRigidBody ()=0 |
| Create a rigid body. | |
| virtual float | GetAngularDamping () const =0 |
| Get the angular Damping for this rigid body. | |
| virtual float | GetElasticity () const =0 |
| Get the elasticity of this rigid body factory. | |
| virtual float | GetLinearDamping () const =0 |
| Get the linear Damping for this rigid body. | |
| virtual void | SetAngularDamping (float d)=0 |
| Set the angular Damping for this rigid body. | |
| virtual void | SetElasticity (float value)=0 |
| Set the elasticity of this rigid body factory. | |
| virtual void | SetLinearDamping (float d)=0 |
| Set the linear Damping for this rigid body. | |
| virtual void | SetState (CS::Physics::RigidBodyState state)=0 |
| Set the dynamic state of this rigid body factory. | |
Detailed Description
Collection of all properties of a rigid body.
Definition at line 239 of file physics.h.
Member Function Documentation
| virtual csPtr<CS::Physics::iRigidBody> CS::Physics::iRigidBodyFactory::CreateRigidBody | ( | ) | [pure virtual] |
Create a rigid body.
| virtual float CS::Physics::iRigidBodyFactory::GetAngularDamping | ( | ) | const [pure virtual] |
Get the angular Damping for this rigid body.
| virtual float CS::Physics::iRigidBodyFactory::GetElasticity | ( | ) | const [pure virtual] |
Get the elasticity of this rigid body factory.
| virtual float CS::Physics::iRigidBodyFactory::GetLinearDamping | ( | ) | const [pure virtual] |
Get the linear Damping for this rigid body.
| virtual void CS::Physics::iRigidBodyFactory::SetAngularDamping | ( | float | d | ) | [pure virtual] |
Set the angular Damping for this rigid body.
The damping correspond to how much the movements of the objects will be reduced. It is a value between 0 and 1, giving the ratio of speed that will be reduced in one second. 0 means that the movement will not be reduced, while 1 means that the object will not move. The default value is 0.
| virtual void CS::Physics::iRigidBodyFactory::SetElasticity | ( | float | value | ) | [pure virtual] |
Set the elasticity of this rigid body factory.
| virtual void CS::Physics::iRigidBodyFactory::SetLinearDamping | ( | float | d | ) | [pure virtual] |
Set the linear Damping for this rigid body.
The damping correspond to how much the movements of the objects will be reduced. It is a value between 0 and 1, giving the ratio of speed that will be reduced in one second. 0 means that the movement will not be reduced, while 1 means that the object will not move. The default value is 0.
- See also:
- iDynamicSystem::SetLinearDamping()
| virtual void CS::Physics::iRigidBodyFactory::SetState | ( | CS::Physics::RigidBodyState | state | ) | [pure virtual] |
Set the dynamic state of this rigid body factory.
The documentation for this struct was generated from the following file:
- ivaria/physics.h
Generated for Crystal Space 2.1 by doxygen 1.6.1
