group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
RagdollSystem.hpp
Go to the documentation of this file.
1
15
16#pragma once
17
19
20namespace systems
21{
22
30entt::entity spawnRagdoll(Registry& registry, entt::entity character);
31
37void destroyRagdoll(Registry& registry, entt::entity character);
38
45void runRagdolls(Registry& registry, float dt);
46
47} // namespace systems
Shared ECS registry type alias for the game engine.
entt::registry Registry
Shared ECS registry type alias.
Definition Registry.hpp:11
Client-only input sampling system — split into two halves so mouse look can run every iterate() (smoo...
Definition DebugUI.hpp:15
void runRagdolls(Registry &registry, float dt)
Per-tick ragdoll bookkeeping: advance age, optionally tick the cleanup timer for old corpses.
Definition RagdollSystem.cpp:382
entt::entity spawnRagdoll(Registry &registry, entt::entity character)
Build a 15-body humanoid ragdoll for the dead character.
Definition RagdollSystem.cpp:335
void destroyRagdoll(Registry &registry, entt::entity character)
Destroy the ragdoll bodies and joints owned by a character.
Definition RagdollSystem.cpp:368