|
group2 0.1.0
CSE 125 Group 2
|
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. | |
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.
| WeaponType Game::GripSwapState::lastType = WeaponType::Rifle |
| float Game::GripSwapState::swapElapsedSec = 1.0f |
Initialised to "already done" so freshly-seen entities start at full hold.