Osiris Framework
0.3
|
Stores motion component minimum or maximum constraints. More...
#include <OsirisSDK/OState.h>
Public Member Functions | |
OStateConstraint () | |
Class constructor. | |
virtual | ~OStateConstraint () |
Class destructor. | |
void | setValue (OVector3::Axis axis, bool enabled, float value=0.0f) |
Enables/disables constraint and sets its value. More... | |
bool | enabled (OVector3::Axis axis) const |
Returns whether the constraint for a given axis is enabled or disabled. | |
float | value (OVector3::Axis axis) const |
Returns constraint value. | |
void | setAbsoluteValue (bool flag) |
Turns on/off absolute value comparison. | |
bool | absoluteValue () const |
Returns if absolute value comparison is turned on. | |
void | disableAll () |
Disable all axis constraints. | |
Stores motion component minimum or maximum constraints.
void OStateConstraint::setValue | ( | OVector3::Axis | axis, |
bool | enabled, | ||
float | value = 0.0f |
||
) |
Enables/disables constraint and sets its value.
axis | Which axis must be changed (x, y and z). |
enabled | Constraint is enabled or disabled. |
value | Constraint value. |