|
Monad Engine da02fba2
> Undercity Codex_
|
#include "animation/IdleClip.h"#include <cmath>#include <vector>#include <glm/gtc/quaternion.hpp>#include <glm/vec3.hpp>#include "animation/SkeletalAnimationClip.h"#include "animation/Skeleton.h"
Include dependency graph for IdleClip.cpp:Go to the source code of this file.
Namespaces | |
| namespace | mnd |
Functions | |
| std::shared_ptr< SkeletalAnimationClip > | mnd::MakeBreathingIdleClip (const Skeleton &skeleton, f32 duration=4.0f, f32 ampScale=1.0f) |
Build a looping breathing/sway clip targeting whichever of the canonical arm bones exist in skeleton. Bones it doesn't find are silently skipped, so this works for full bodies, FPS arms-only rigs, and partial rigs alike. | |
| f32 amplitudeRad |
Peak rotation in radians.
Definition at line 24 of file IdleClip.cpp.
| glm::vec3 axis |
Rotation axis in bone-local space.
Definition at line 23 of file IdleClip.cpp.
| const char* boneName |
Definition at line 22 of file IdleClip.cpp.
| f32 phaseOffset |
Phase shift in cycles ([0,1)) — desyncs left/right for organic feel.
Definition at line 25 of file IdleClip.cpp.