group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
MovementSystem.hpp
Go to the documentation of this file.
1
3
4#pragma once
5
11
12struct PlayerVisState;
13struct PlayerSimState;
15
25namespace systems
26{
27
33void runMovement(Registry& registry, float dt, const physics::WorldGeometry& world);
34
40void reconcileMovementAfterKcc(glm::vec3& pos,
41 glm::vec3& vel,
42 const CollisionShape& shape,
43 PlayerVisState& vis,
44 PlayerSimState& sim,
45 const InputSnapshot& input,
46 const physics::WorldGeometry& world,
47 const physics::KccFrameResult& kcc,
48 float dt);
49
59float currentWishSpeed(const PlayerVisState& vis);
60
61} // namespace systems
Collision shape component — AABB or vertical capsule.
Per-tick player input snapshot for networking and prediction.
Per-tick collision feedback emitted by the player KCC.
Shared ECS registry type alias for the game engine.
entt::registry Registry
Shared ECS registry type alias.
Definition Registry.hpp:11
Swept AABB and sphere collision queries against world geometry.
Client-only input sampling system — split into two halves so mouse look can run every iterate() (smoo...
Definition DebugUI.hpp:15
void reconcileMovementAfterKcc(glm::vec3 &pos, glm::vec3 &vel, const CollisionShape &shape, PlayerVisState &vis, PlayerSimState &sim, const InputSnapshot &input, const physics::WorldGeometry &world, const physics::KccFrameResult &kcc, float dt)
Consume collision-owned KCC feedback after position integration.
Definition MovementSystem.cpp:1654
float currentWishSpeed(const PlayerVisState &vis)
Determine the current ground wish speed based on movement mode and stance.
Definition MovementSystem.cpp:275
void runMovement(Registry &registry, float dt, const physics::WorldGeometry &world)
Apply one tick of player movement physics to all eligible entities.
Definition MovementSystem.cpp:2016
Read-only counterpart of PlayerStateRef, for const consumers.
Definition PlayerSimState.hpp:149
Server-only locomotion bookkeeping.
Definition PlayerSimState.hpp:32
Replicated subset of player locomotion state.
Definition PlayerVisState.hpp:40