Prop Field Instance. More...
#include <dePropFieldInstance.h>
Public Member Functions | |
Constructors and Destructors | |
| dePropFieldInstance () | |
| Creates a new prop field instance. | |
| ~dePropFieldInstance () | |
| Cleans up the prop field instance. | |
Management | |
| const decVector & | GetPosition () const |
| Retrieves the initial position. | |
| void | SetPosition (const decVector &position) |
| Sets the initial position. | |
| const decVector & | GetRotation () const |
| Retrieves the initial rotation. | |
| void | SetRotation (const decVector &rotation) |
| Sets the initial rotation. | |
| float | GetScaling () const |
| Retrieves the scaling. | |
| void | SetScaling (float scaling) |
| Sets the scaling. | |
| int | GetBendState () const |
| Retrieves the bend state index or -1 if not assigned. | |
| void | SetBendState (int state) |
| Sets the bend state index or -1 if not assigned. | |
Prop Field Instance.
Describes an instance of a prop in a prop field. These are blue prints of the model of the parent type. Only the initial state without influence from any forces is stored. The bend state parameter points into the list of bend state where the actual bend state is stored. More than one instance can use the same bend state which allows the physics module to improve performance avoiding costly calculations and lots of data transfer in memory.
| dePropFieldInstance::dePropFieldInstance | ( | ) |
Creates a new prop field instance.
| dePropFieldInstance::~dePropFieldInstance | ( | ) |
Cleans up the prop field instance.
| int dePropFieldInstance::GetBendState | ( | ) | const [inline] |
Retrieves the bend state index or -1 if not assigned.
| const decVector& dePropFieldInstance::GetPosition | ( | ) | const [inline] |
Retrieves the initial position.
| const decVector& dePropFieldInstance::GetRotation | ( | ) | const [inline] |
Retrieves the initial rotation.
| float dePropFieldInstance::GetScaling | ( | ) | const [inline] |
Retrieves the scaling.
| void dePropFieldInstance::SetBendState | ( | int | state ) |
Sets the bend state index or -1 if not assigned.
| void dePropFieldInstance::SetPosition | ( | const decVector & | position ) |
Sets the initial position.
| void dePropFieldInstance::SetRotation | ( | const decVector & | rotation ) |
Sets the initial rotation.
| void dePropFieldInstance::SetScaling | ( | float | scaling ) |
Sets the scaling.
1.7.2