group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
Game::GripSwapState Struct Reference

Per-entity weapon-swap fade state. More...

Public Attributes

WeaponType lastType = WeaponType::Rifle
float swapElapsedSec = 1.0f
 Initialised to "already done" so freshly-seen entities start at full hold.

Detailed Description

Per-entity weapon-swap fade state.

When an entity's equipped weapon changes we reset swapElapsedSec to 0 and ramp the arm-FK hold weight 0 → 1 over the swap duration so the arms re-pose onto the new weapon.

Member Data Documentation

◆ lastType

WeaponType Game::GripSwapState::lastType = WeaponType::Rifle

◆ swapElapsedSec

float Game::GripSwapState::swapElapsedSec = 1.0f

Initialised to "already done" so freshly-seen entities start at full hold.


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