CS::Physics::iPhysicalObjectFactory Struct Reference
Collection of all properties of a physical object. More...
#include <ivaria/physics.h>

Public Member Functions | |
| virtual float | GetDensity () const =0 |
| Get the density of all objects that will be constructed by this factory. The default value is 1.0f. | |
| virtual float | GetFriction () const =0 |
| Get the friction of all objects that will be constructed by this factory. | |
| virtual bool | GetGravityEnabled () const =0 |
| Whether this object is affected by gravity. Enabled by default. | |
| virtual float | GetMass () const =0 |
| Get the mass of all objects that will be constructed by this factory. The default value is 1.0f. | |
| virtual CS::Physics::PhysicalObjectType | GetPhysicalObjectType () const =0 |
| Get the PhysicalObjectType of the object whose data is stored in this properties object. | |
| virtual void | SetDensity (float value)=0 |
| Set the density of all objects that will be constructed by this factory. | |
| virtual void | SetFriction (float value)=0 |
| Set the friction of all objects that will be constructed by this factory. The default value is 10.0f. | |
| virtual void | SetGravityEnabled (bool enabled)=0 |
| Whether this object is affected by gravity. | |
| virtual void | SetMass (float value)=0 |
| Set the mass of all objects that will be constructed by this factory. | |
Detailed Description
Collection of all properties of a physical object.
Definition at line 105 of file physics.h.
Member Function Documentation
| virtual float CS::Physics::iPhysicalObjectFactory::GetDensity | ( | ) | const [pure virtual] |
Get the density of all objects that will be constructed by this factory. The default value is 1.0f.
| virtual float CS::Physics::iPhysicalObjectFactory::GetFriction | ( | ) | const [pure virtual] |
Get the friction of all objects that will be constructed by this factory.
| virtual bool CS::Physics::iPhysicalObjectFactory::GetGravityEnabled | ( | ) | const [pure virtual] |
Whether this object is affected by gravity. Enabled by default.
| virtual float CS::Physics::iPhysicalObjectFactory::GetMass | ( | ) | const [pure virtual] |
Get the mass of all objects that will be constructed by this factory. The default value is 1.0f.
| virtual CS::Physics::PhysicalObjectType CS::Physics::iPhysicalObjectFactory::GetPhysicalObjectType | ( | ) | const [pure virtual] |
Get the PhysicalObjectType of the object whose data is stored in this properties object.
| virtual void CS::Physics::iPhysicalObjectFactory::SetDensity | ( | float | value | ) | [pure virtual] |
Set the density of all objects that will be constructed by this factory.
| virtual void CS::Physics::iPhysicalObjectFactory::SetFriction | ( | float | value | ) | [pure virtual] |
Set the friction of all objects that will be constructed by this factory. The default value is 10.0f.
| virtual void CS::Physics::iPhysicalObjectFactory::SetGravityEnabled | ( | bool | enabled | ) | [pure virtual] |
Whether this object is affected by gravity.
| virtual void CS::Physics::iPhysicalObjectFactory::SetMass | ( | float | value | ) | [pure virtual] |
Set the mass of all objects that will be constructed by this 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
