bevy-spatial-queries
Installation
SKILL.md
Bevy spatial queries
When to use
Load this when a design needs line of sight, a volume overlap, a ground probe, or a mouse pick. Screen-to-2D-world mapping that does not hit a collider is a camera helper, not a physics query.
ECS shape
- Components own a probe radius or a facing marker. Positions come from
GlobalTransform. - Camera pick:
Camera::viewport_to_world_2dwithGlobalTransformmaps a cursor to a 2D world point. That is a camera map, then a distance test against sprites. See bevy-camera-systems. - Systems read transforms after movement. Chain the probe after the system that writes
Transformwhen both run in the same schedule.