![]() |
Rigs of Rods 2023.09
Soft-body Physics Simulation
|
Represents a single named skeletal animation track present in the mesh. More...
#include <AngelOgre_AnimationState.h>
Public Member Functions | |
| const string & | getAnimationName () const |
| Gets the name of the animation to which this state applies. | |
| float | getTimePosition (void) const |
| Gets the time position for this animation. | |
| void | setTimePosition (float timePos) |
| Sets the time position for this animation. | |
| float | getLength () const |
| Gets the total length of this animation (may be shorter than whole animation) | |
| void | setLength (float len) |
| Sets the total length of this animation (may be shorter than whole animation) | |
| float | getWeight (void) const |
| Gets the weight (influence) of this animation. | |
| void | setWeight (float weight) |
| Sets the weight (influence) of this animation. | |
| void | addTime (float offset) |
| Modifies the time position, adjusting for animation length. | |
| bool | hasEnded (void) const |
| Returns true if the animation has reached the end and is not looping. | |
| bool | getEnabled (void) const |
| Returns true if this animation is currently enabled. | |
| void | setEnabled (bool enabled) |
| Sets whether this animation is enabled. | |
| void | setLoop (bool loop) |
| Sets whether or not an animation loops at the start and end of the animation if the time continues to be altered. | |
| bool | getLoop (void) const |
| Gets whether or not this animation loops | |
| AnimationStateSet * | getParent (void) const |
| Get the parent animation state set. | |
| void | createBlendMask (uint64 blendMaskSizeHint, float initialWeight=1.0f) |
| Create a new blend mask with the given number of entries. | |
| void | destroyBlendMask () |
| Destroy the currently set blend mask. | |
| bool | hasBlendMask () const |
| Return whether there is currently a valid blend mask set. | |
| void | setBlendMaskEntry (uint64 boneHandle, float weight) |
| Set the weight for the bone identified by the given handle. | |
| float | getBlendMaskEntry (uint64 boneHandle) const |
| Get the weight for the bone identified by the given handle. | |
Represents a single named skeletal animation track present in the mesh.
Definition at line 15 of file AngelOgre_AnimationState.h.
| void AngelOgre::AnimationState::addTime | ( | float | offset | ) |
Modifies the time position, adjusting for animation length.
| offset | The amount of time, in seconds, to extend the animation. |
| void AngelOgre::AnimationState::createBlendMask | ( | uint64 | blendMaskSizeHint, |
| float | initialWeight = 1.0f |
||
| ) |
Create a new blend mask with the given number of entries.
In addition to assigning a single weight value to a skeletal animation, it may be desirable to assign animation weights per bone using a 'blend mask'.
| blendMaskSizeHint | The number of bones of the skeleton owning this AnimationState. |
| initialWeight | The value all the blend mask entries will be initialised with (negative to skip initialisation) |
| void AngelOgre::AnimationState::destroyBlendMask | ( | ) |
Destroy the currently set blend mask.
| const string & AngelOgre::AnimationState::getAnimationName | ( | ) | const |
Gets the name of the animation to which this state applies.
| float AngelOgre::AnimationState::getBlendMaskEntry | ( | uint64 | boneHandle | ) | const |
Get the weight for the bone identified by the given handle.
| bool AngelOgre::AnimationState::getEnabled | ( | void | ) | const |
Returns true if this animation is currently enabled.
| float AngelOgre::AnimationState::getLength | ( | ) | const |
Gets the total length of this animation (may be shorter than whole animation)
| bool AngelOgre::AnimationState::getLoop | ( | void | ) | const |
Gets whether or not this animation loops
| AnimationStateSet * AngelOgre::AnimationState::getParent | ( | void | ) | const |
Get the parent animation state set.
| float AngelOgre::AnimationState::getTimePosition | ( | void | ) | const |
Gets the time position for this animation.
| float AngelOgre::AnimationState::getWeight | ( | void | ) | const |
Gets the weight (influence) of this animation.
| bool AngelOgre::AnimationState::hasBlendMask | ( | ) | const |
Return whether there is currently a valid blend mask set.
| bool AngelOgre::AnimationState::hasEnded | ( | void | ) | const |
Returns true if the animation has reached the end and is not looping.
| void AngelOgre::AnimationState::setBlendMaskEntry | ( | uint64 | boneHandle, |
| float | weight | ||
| ) |
Set the weight for the bone identified by the given handle.
| void AngelOgre::AnimationState::setEnabled | ( | bool | enabled | ) |
Sets whether this animation is enabled.
| void AngelOgre::AnimationState::setLength | ( | float | len | ) |
Sets the total length of this animation (may be shorter than whole animation)
| void AngelOgre::AnimationState::setLoop | ( | bool | loop | ) |
Sets whether or not an animation loops at the start and end of the animation if the time continues to be altered.
| void AngelOgre::AnimationState::setTimePosition | ( | float | timePos | ) |
Sets the time position for this animation.
| void AngelOgre::AnimationState::setWeight | ( | float | weight | ) |
Sets the weight (influence) of this animation.