The range of motion (RoM) for a bone.
|
| | RangeOfMotion (float min, float max) |
| | Create a new range of motion.
|
| float | Clamp (float angle) |
| | Clamp an angle to the range of motion.
|
|
|
float | minimum |
| | The minimum angle in degrees.
|
|
float | maximum |
| | The maximum angle in degrees.
|
|
|
bool | isValid [get] |
| | Check if the RoM min value is smaller than the max value.
|
◆ RangeOfMotion()
| Creatures.Bone.RangeOfMotion.RangeOfMotion |
( |
float | min, |
|
|
float | max ) |
Create a new range of motion.
- Parameters
-
| min | The minimum angle in degrees |
| max | The maximum angle in degrees |
◆ Clamp()
| float Creatures.Bone.RangeOfMotion.Clamp |
( |
float | angle | ) |
|
Clamp an angle to the range of motion.
- Parameters
-
- Returns
- The clamped angle
The documentation for this class was generated from the following file: