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 would own query origin, direction, and a mask once a solver defines them. Check the solver docs before naming those types.
  • Resources would own a physics world. None was opened.
  • Systems would run the query after the solver step. Order that with .chain() on the ECS page. The clock is Fixed / FixedMain from bevy::time, which is not a query API.
  • Camera-only pick: Camera::viewport_to_world_2d with GlobalTransform maps a viewport position to a 2D world position. That is not an intersection test. See bevy-camera-systems.

Coming from Godot

Installs
4
GitHub Stars
850
First Seen
3 days ago