group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
RagdollSystem.cpp File Reference

Implementation of ragdoll spawn / tick. More...

Include dependency graph for RagdollSystem.cpp:

Namespaces

namespace  systems
 Client-only input sampling system — split into two halves so mouse look can run every iterate() (smooth camera at any FPS) while movement keys run once per physics tick group (server-consistent).

Functions

entt::entity systems::spawnRagdoll (Registry &registry, entt::entity character)
 Build a 15-body humanoid ragdoll for the dead character.
void systems::destroyRagdoll (Registry &registry, entt::entity character)
 Destroy the ragdoll bodies and joints owned by a character.
void systems::runRagdolls (Registry &registry, float dt)
 Per-tick ragdoll bookkeeping: advance age, optionally tick the cleanup timer for old corpses.

Detailed Description

Implementation of ragdoll spawn / tick.