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

Sleep + island wake propagation implementation. More...

#include "ecs/physics/Sleep.hpp"
#include "ecs/components/Orientation.hpp"
#include "ecs/components/RigidBody.hpp"
#include "ecs/components/Velocity.hpp"
#include <glm/geometric.hpp>
#include <unordered_set>
#include <vector>
Include dependency graph for Sleep.cpp:

Namespaces

namespace  physics
 Pure physics math — no ECS types, no registry.

Functions

void physics::updateSleep (Registry &registry, const SleepConfig &cfg)
 Update each body's sleep state from its current velocities.
void physics::wakeBody (Registry &registry, entt::entity e)
 Wake a single body (e.g.
void physics::wakeIslandOf (Registry &registry, const ContactCache &cache, entt::entity e)
 Wake every body that's currently in the same contact island as e.

Detailed Description

Sleep + island wake propagation implementation.