group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
AnimationLocomotion.hpp File Reference

Pure locomotion clip/transition planner for CharacterAnimator. More...

#include "AnimationLibrary.hpp"
#include "ecs/physics/TitanfallConstants.hpp"
#include <glm/vec3.hpp>
Include dependency graph for AnimationLocomotion.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  anim_locomotion::LocalVelocity
struct  anim_locomotion::LocomotionSelection
struct  anim_locomotion::TransitionIntent
struct  anim_locomotion::TransitionTracker

Namespaces

namespace  anim_locomotion

Enumerations

enum class  anim_locomotion::TransitionKind : unsigned char { anim_locomotion::None , anim_locomotion::Start , anim_locomotion::Stop , anim_locomotion::Pivot }

Functions

float anim_locomotion::speed (const LocalVelocity &local) noexcept
LocalVelocity anim_locomotion::localVelocityFromWorld (const glm::vec3 &velocityWorld, float yawRad) noexcept
float anim_locomotion::smoothingAlpha (float dtSec, float tauSec) noexcept
LocomotionSelection anim_locomotion::selectLocomotion (const LocalVelocity &local, bool crouching) noexcept
TransitionIntent anim_locomotion::updateTransitionTracker (TransitionTracker &tracker, const LocalVelocity &local, float dtSec) noexcept
float anim_locomotion::transitionWeight (TransitionKind kind, float elapsedSec, float durationSec, float peakWeight) noexcept
float anim_locomotion::transitionPlaybackRatio (float elapsedSec, float durationSec) noexcept
ClipId anim_locomotion::fallbackTransitionClip (TransitionKind kind, ClipId preferredClip) noexcept

Variables

constexpr float anim_locomotion::k_idleCutoff = 10.0f
constexpr float anim_locomotion::k_moveThreshold = 45.0f
constexpr float anim_locomotion::k_walkSpeedRef = tms::k_walkStrafeSpeed
constexpr float anim_locomotion::k_runSpeedRef = tms::k_walkForwardSpeed

Detailed Description

Pure locomotion clip/transition planner for CharacterAnimator.