|
group2 0.1.0
CSE 125 Group 2
|
Implementation of ragdoll spawn / tick. More...
#include "ecs/systems/RagdollSystem.hpp"#include "ecs/components/ClientId.hpp"#include "ecs/components/CollisionShape.hpp"#include "ecs/components/Orientation.hpp"#include "ecs/components/Position.hpp"#include "ecs/components/Ragdoll.hpp"#include "ecs/components/RigidBody.hpp"#include "ecs/components/Velocity.hpp"#include "ecs/physics/Inertia.hpp"#include "ecs/physics/Joints.hpp"#include "ecs/physics/RagdollPbd.hpp"#include <glm/vec3.hpp>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 ®istry, entt::entity character) |
| Build a 15-body humanoid ragdoll for the dead character. | |
| void | systems::destroyRagdoll (Registry ®istry, entt::entity character) |
| Destroy the ragdoll bodies and joints owned by a character. | |
| void | systems::runRagdolls (Registry ®istry, float dt) |
| Per-tick ragdoll bookkeeping: advance age, optionally tick the cleanup timer for old corpses. | |
Implementation of ragdoll spawn / tick.