58[[nodiscard]]
float speed(
const LocalVelocity& local)
noexcept;
60[[nodiscard]]
float smoothingAlpha(
float dtSec,
float tauSec)
noexcept;
61[[nodiscard]] LocomotionSelection
selectLocomotion(
const LocalVelocity& local,
bool crouching)
noexcept;
62[[nodiscard]] TransitionIntent
Catalog of ozz animation clips shared across all animated entities.
ClipId
Enumerated clip IDs.
Definition AnimationLibrary.hpp:21
@ _Count
Sentinel; also used as "no clip / no override".
Definition AnimationLibrary.hpp:57
@ Idle
Definition AnimationLibrary.hpp:22
Titanfall-inspired movement constants adapted to Quake units.
Definition AnimationLocomotion.cpp:10
constexpr float k_idleCutoff
Definition AnimationLocomotion.hpp:14
TransitionKind
Definition AnimationLocomotion.hpp:37
@ Stop
Definition AnimationLocomotion.hpp:40
@ None
Definition AnimationLocomotion.hpp:38
@ Pivot
Definition AnimationLocomotion.hpp:41
@ Start
Definition AnimationLocomotion.hpp:39
float smoothingAlpha(float dtSec, float tauSec) noexcept
Definition AnimationLocomotion.cpp:82
constexpr float k_walkSpeedRef
Definition AnimationLocomotion.hpp:16
float transitionWeight(TransitionKind kind, float elapsedSec, float durationSec, float peakWeight) noexcept
Definition AnimationLocomotion.cpp:206
float speed(const LocalVelocity &local) noexcept
Definition AnimationLocomotion.cpp:65
float transitionPlaybackRatio(float elapsedSec, float durationSec) noexcept
Definition AnimationLocomotion.cpp:214
LocomotionSelection selectLocomotion(const LocalVelocity &local, bool crouching) noexcept
Definition AnimationLocomotion.cpp:89
LocalVelocity localVelocityFromWorld(const glm::vec3 &velocityWorld, float yawRad) noexcept
Definition AnimationLocomotion.cpp:70
TransitionIntent updateTransitionTracker(TransitionTracker &tracker, const LocalVelocity &local, float dtSec) noexcept
Definition AnimationLocomotion.cpp:163
constexpr float k_moveThreshold
Definition AnimationLocomotion.hpp:15
constexpr float k_runSpeedRef
Definition AnimationLocomotion.hpp:17
ClipId fallbackTransitionClip(TransitionKind kind, ClipId preferredClip) noexcept
Definition AnimationLocomotion.cpp:221
constexpr float k_walkForwardSpeed
Forward (W/S) wish speed on foot (u/s) — slightly faster than the legacy uniform value so a pure forw...
Definition TitanfallConstants.hpp:21
constexpr float k_walkStrafeSpeed
Side strafe (A/D) wish speed on foot (u/s).
Definition TitanfallConstants.hpp:23
Definition AnimationLocomotion.hpp:20
float right
Definition AnimationLocomotion.hpp:22
float forward
Definition AnimationLocomotion.hpp:21
Definition AnimationLocomotion.hpp:26
float speedScale
Definition AnimationLocomotion.hpp:32
ClipId strafeClip
Definition AnimationLocomotion.hpp:29
float horizontalSpeed
Definition AnimationLocomotion.hpp:33
float secondaryWeight
Definition AnimationLocomotion.hpp:30
ClipId secondary
Definition AnimationLocomotion.hpp:28
ClipId primary
Definition AnimationLocomotion.hpp:27
float strafeBlend
Definition AnimationLocomotion.hpp:31
Definition AnimationLocomotion.hpp:45
float durationSec
Definition AnimationLocomotion.hpp:48
ClipId preferredClip
Definition AnimationLocomotion.hpp:47
TransitionKind kind
Definition AnimationLocomotion.hpp:46
float peakWeight
Definition AnimationLocomotion.hpp:49
Definition AnimationLocomotion.hpp:53
bool wasMoving
Definition AnimationLocomotion.hpp:54
LocalVelocity previous
Definition AnimationLocomotion.hpp:55