|
group2 0.1.0
CSE 125 Group 2
|
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>Namespaces | |
| namespace | physics |
| Pure physics math — no ECS types, no registry. | |
Functions | |
| void | physics::updateSleep (Registry ®istry, const SleepConfig &cfg) |
| Update each body's sleep state from its current velocities. | |
| void | physics::wakeBody (Registry ®istry, entt::entity e) |
| Wake a single body (e.g. | |
| void | physics::wakeIslandOf (Registry ®istry, const ContactCache &cache, entt::entity e) |
| Wake every body that's currently in the same contact island as e. | |
Sleep + island wake propagation implementation.