dePropFieldInstance Class Reference

Prop Field Instance. More...

#include <dePropFieldInstance.h>

List of all members.

Public Member Functions

Constructors and Destructors
 dePropFieldInstance ()
 Creates a new prop field instance.
 ~dePropFieldInstance ()
 Cleans up the prop field instance.
Management
const decVectorGetPosition () const
 Retrieves the initial position.
void SetPosition (const decVector &position)
 Sets the initial position.
const decVectorGetRotation () 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.

Detailed Description

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.

Author:
Plüss Roland
Version:
1.0
Date:
2009

Constructor & Destructor Documentation

dePropFieldInstance::dePropFieldInstance (  )

Creates a new prop field instance.

dePropFieldInstance::~dePropFieldInstance (  )

Cleans up the prop field instance.


Member Function Documentation

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.


The documentation for this class was generated from the following file: