group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
anim_locomotion Namespace Reference

Classes

struct  LocalVelocity
struct  LocomotionSelection
struct  TransitionIntent
struct  TransitionTracker

Enumerations

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

Functions

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

Variables

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

Enumeration Type Documentation

◆ TransitionKind

enum class anim_locomotion::TransitionKind : unsigned char
strong
Enumerator
None 
Start 
Stop 
Pivot 

Function Documentation

◆ fallbackTransitionClip()

ClipId anim_locomotion::fallbackTransitionClip ( TransitionKind kind,
ClipId preferredClip )
nodiscardnoexcept

◆ localVelocityFromWorld()

LocalVelocity anim_locomotion::localVelocityFromWorld ( const glm::vec3 & velocityWorld,
float yawRad )
nodiscardnoexcept
Here is the caller graph for this function:

◆ selectLocomotion()

LocomotionSelection anim_locomotion::selectLocomotion ( const LocalVelocity & local,
bool crouching )
nodiscardnoexcept
Here is the call graph for this function:
Here is the caller graph for this function:

◆ smoothingAlpha()

float anim_locomotion::smoothingAlpha ( float dtSec,
float tauSec )
nodiscardnoexcept
Here is the caller graph for this function:

◆ speed()

float anim_locomotion::speed ( const LocalVelocity & local)
nodiscardnoexcept
Here is the caller graph for this function:

◆ transitionPlaybackRatio()

float anim_locomotion::transitionPlaybackRatio ( float elapsedSec,
float durationSec )
nodiscardnoexcept
Here is the caller graph for this function:

◆ transitionWeight()

float anim_locomotion::transitionWeight ( TransitionKind kind,
float elapsedSec,
float durationSec,
float peakWeight )
nodiscardnoexcept
Here is the caller graph for this function:

◆ updateTransitionTracker()

TransitionIntent anim_locomotion::updateTransitionTracker ( TransitionTracker & tracker,
const LocalVelocity & local,
float dtSec )
nodiscardnoexcept
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ k_idleCutoff

float anim_locomotion::k_idleCutoff = 10.0f
inlineconstexpr

◆ k_moveThreshold

float anim_locomotion::k_moveThreshold = 45.0f
inlineconstexpr

◆ k_runSpeedRef

float anim_locomotion::k_runSpeedRef = tms::k_walkForwardSpeed
inlineconstexpr

◆ k_walkSpeedRef

float anim_locomotion::k_walkSpeedRef = tms::k_walkStrafeSpeed
inlineconstexpr