mcpField
R
rust-bevy-collision-broadphase

rust-bevy-collision-broadphase

github.com/lvtd-llcDevelopment142 installsUpdated 7w ago
Repository

About rust-bevy-collision-broadphase

A skill for Bevy developers designing collision detection that scales while keeping detection separate from response and gameplay rules. It guides broadphase selection, event routing, testing, and benchmarking.

Key features

  1. 01Broadphase selection by scene
  2. 02Compact collider data
  3. 03Candidate and collision events
  4. 04Edge and movement testing
  5. 05Before-and-after benchmarking

Use cases

  1. 01Choose a broadphase for a scene
  2. 02Optimize an existing collision system
  3. 03Test collision filters and despawns

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/lvtd-llc/skills --skill rust-bevy-collision-broadphase

After installing, type/rust-bevy-collision-broadphasein Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

guidelines.md
agents/
openai.yaml
references/
broadphase-patterns.md
workflows/
optimize-collision.md

Details

From the project README

Rust Bevy Collision Broadphase

Use this skill to make Bevy collision detection scale without mixing detection, response, rendering, and gameplay rules into one system.

Core Workflow

  1. Identify the collision shapes, movement model, entity counts, and layers.
  2. Keep collider data small and independent from sprites, textures, and game rules.
  3. Choose the cheapest broadphase that fits the scene: brute force for tiny counts, spatial hash for uniform worlds, quad tree for clustered worlds.
  4. Emit candidate or collision events; let separate systems decide response.
  5. Test edge contacts, fast movement, layer filters, despawn cases, and deterministic ordering.
  6. Benchmark before and after changing the broadphase.

Read Next

TaskLoad
Pick or review a broadphaseguidelines.md, references/broadphase-patterns.md
Optimize an existing collision systemworkflows/optimize-collision.md
Route a specific symptomguidelines.md

Source Notes

Guidance is transformed and paraphrased from Herbert Wolverson, Advanced Hands-On Rust, especially Chapter 8 on obstacles and collision detection and Chapter 12 on optimization. The examples are original skeletons intended to preserve the transferable technique, not the book's project code.

Comments

Markdown supported