group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
AnimationInputs Struct Reference

Driving inputs for the animation state machine. More...

#include <CharacterAnimator.hpp>

Public Attributes

glm::vec3 velocityWorld {0.0f}
 World-space velocity (u/s).
 
float yawRad = 0.0f
 Player yaw (radians).
 
float pitchRad = 0.0f
 Player pitch (radians, positive = looking down).
 
bool grounded = false
 Touching the ground this tick.
 
bool sprinting = false
 Sprint key currently held.
 
bool crouching = false
 Crouch currently held (phase 1: note-only).
 
int moveMode = 0
 MoveMode value: 0=OnFoot, 1=Sliding, 2=WallRunning, 3=Climbing, 4=LedgeGrabbing.
 
int wallRunSide = 0
 WallSide value: 0=None, 1=Left, 2=Right.
 

Detailed Description

Driving inputs for the animation state machine.

Read from the ECS each frame. moveMode is the integer value of MoveMode from PlayerState (avoids a header dependency here).

Member Data Documentation

◆ crouching

bool AnimationInputs::crouching = false

Crouch currently held (phase 1: note-only).

◆ grounded

bool AnimationInputs::grounded = false

Touching the ground this tick.

◆ moveMode

int AnimationInputs::moveMode = 0

MoveMode value: 0=OnFoot, 1=Sliding, 2=WallRunning, 3=Climbing, 4=LedgeGrabbing.

◆ pitchRad

float AnimationInputs::pitchRad = 0.0f

Player pitch (radians, positive = looking down).

◆ sprinting

bool AnimationInputs::sprinting = false

Sprint key currently held.

◆ velocityWorld

glm::vec3 AnimationInputs::velocityWorld {0.0f}

World-space velocity (u/s).

◆ wallRunSide

int AnimationInputs::wallRunSide = 0

WallSide value: 0=None, 1=Left, 2=Right.

◆ yawRad

float AnimationInputs::yawRad = 0.0f

Player yaw (radians).


The documentation for this struct was generated from the following file: