Controls object orientation and motion state.
More...
#include <OsirisSDK/OState.h>
Controls object orientation and motion state.
Specifies the rotation referencial to be taken into account while working with the motion equation components.
Enumerator |
---|
Scene |
Scene referencial
|
Object |
Object referencial
|
Adds to a motion equation vector component.
- Parameters
-
degree | The degree of the component (i.e. 1 = velocity, 2 = acceleration, etc.): the n-th derivative of the motion state equation. |
component | Component value. Time is given in microseconds. |
orRef | The orientation referencial that this new values is defined in. |
Return the maximum value constraint for a given motion state degree.
´
- Parameters
-
degree | The degree of the component (i.e. 0 = position, 1 = velocity, 2 = acceleration, etc.). |
- Returns
- Pointer to the constraint object, NULL if degree is non-existant.
Return the minimum value constraint for a given motion state degree.
- Parameters
-
degree | The degree of the component (i.e. 0 = position, 1 = velocity, 2 = acceleration, etc.). |
- Returns
- Pointer to the constraint object, NULL if degree is non-existant.
Obtain motion state components for a given degree in the specified orientation reference frame.
- Parameters
-
degree | The degree of the component (i.e. 1 = velocity, 2 = acceleration, etc.): the n-th derivative of the motion state equation. |
orRef | The orientation referencial that this new values is defined in. |
- Returns
- Vector component for a given degree. Time is given in microseconds.
OVector3 & OState::motionComponent |
( |
int |
degree | ) |
|
Obtain motion state component for a given degree in the current orientation reference frame.
- Parameters
-
degree | The degree of the component (i.e. 1 = velocity, 2 = acceleration, etc.): the n-th derivative of the motion state equation. |
- Returns
- Pointer to the vector component for a given degree. Time is given in microseconds.
Defines motion equation vector components.
- Parameters
-
degree | The degree of the component (i.e. 1 = velocity, 2 = acceleration, etc.): the n-th derivative of the motion state equation. |
component | Component value. Time is given in microseconds. |
orRef | The orientation referencial that this new values is defined in. |
void OState::setOrientation |
( |
const OVector3 & |
or | ) |
|
Set orientation in terms of Euler angles.
- Parameters
-
or | Vector containing Euler angles representing rotation for each axis. |
void OState::update |
( |
const OTimeIndex & |
timeIndex | ) |
|
Update state for a given time index.
- Parameters
-
The documentation for this class was generated from the following files:
- include/OsirisSDK/OState.h
- src/OState.cpp