bevy-physics-2d
Installation
SKILL.md
Bevy 2D physics
When to use
Load this when a Bevy app needs simulated 2D bodies, triggers, or layer filtering before choosing a solver. Pair with bevy-character-movement for player motion that should not be a rigid body. Pair with bevy-spatial-queries for casts that also wait on a solver.
ECS shape
- Components would own body kind, velocity, and collider data once a solver crate is chosen. The ECS page only shows plain
Componentstructs. It does not define a rigid body. - Resources would own gravity and solver settings. Check the solver docs before naming those fields.
- Systems would step the solver on a fixed schedule.
bevy::timedocumentsFixedandrun_fixed_main_schedule(FixedMain). That is a clock, not a physics engine. - Schedule: fixed timestep for the step;
.chain()when a system must see the step result before it runs (ECS page).