Skip to content
Skill

Bevy physics

Guides an agent through adding Rapier physics, colliders and queries to Bevy 0.20

Bevy physics is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
40
Last commit
License
MIT
Listing updated

Similar skills

About Bevy physics

This skill covers the Rapier physics integration for Bevy 0.20, from plugin setup to bodies, colliders, collision messages and scene queries. It explains when to choose bevy_rapier over the Avian engine and warns against running both on the same entities. A worked Rust example shows how to run the physics step on a fixed schedule, drive bodies before the physics sync set and react to collisions after writeback.

Beyond the example, the skill gives version pitfalls for the 0.36 and 0.37 crate lines, headless Cargo feature configuration, and the Velocity field names. It also covers guidance on dynamic versus kinematic body transforms and the quarantine event that disables bodies whose state became NaN or infinite. Reference files go deeper on setup and scheduling, bodies and colliders, events and filtering, controllers and joints, and determinism and testing.

The skill expects a Rust project using Bevy 0.20 and bevy_rapier2d or bevy_rapier3d 0.37, with Cargo and a 2D or 3D dimension feature chosen. It has no bundled scripts; it is instructional material that the agent reads while writing code.

When your agent uses it

Use when adding `RapierPhysicsPlugin`, spawning `RigidBody`/`Collider`, reading `CollisionEvent` or `PhysicsQuarantineEvent`, querying with `ReadRapierContext`, configuring `KinematicCharacterController`, or ordering gameplay around `PhysicsSet` in Bevy 0.20.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 6 files (29 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the raea plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add shinyobjectz/raea-skills
/plugin install raea@raea

Or copy only this skill to ~/.claude/skills/bevy-physics:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/shinyobjectz/raea-skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/bevy-physics &&
cp -R "$tmp/skills/bevy/pack/bevy-physics" ~/.claude/skills/bevy-physics &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/bevy-physics inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/bevy-physics to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/shinyobjectz/raea-skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/bevy-physics &&
cp -R "$tmp/skills/bevy/pack/bevy-physics" ~/.agents/skills/bevy-physics &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/bevy-physics inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/bevy-physics to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/shinyobjectz/raea-skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/bevy-physics &&
cp -R "$tmp/skills/bevy/pack/bevy-physics" ~/.cursor/skills/bevy-physics &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/bevy-physics inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/shinyobjectz/raea-skills.git --path skills/bevy/pack/bevy-physics

Or copy the folder to ~/.gemini/skills/bevy-physics yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/bevy-physics:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/shinyobjectz/raea-skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/bevy-physics &&
cp -R "$tmp/skills/bevy/pack/bevy-physics" ~/.copilot/skills/bevy-physics &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/bevy-physics inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/shinyobjectz/raea-skills.git

Then copy raea-skills/skills/bevy/pack/bevy-physics into your agent's skills folder as bevy-physics. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Rapier plugin setup
Shows how to add the Rapier plugin and place it on a fixed timestep schedule with matching clock settings.
System ordering around physics
Explains ordering gameplay systems before the sync step and after writeback to avoid transform jitter.
Version and feature pitfalls
Lists crate version pairings for Bevy 0.20 and the headless feature configuration to avoid build failures.
Collision messages and queries
Covers reading collision messages, enabling active event flags, and running ray, shape and overlap queries.
Body and character control
Describes dynamic versus kinematic bodies and the kinematic character controller for movement.
Quarantine and debugging
Explains how to handle bodies disabled after invalid physics state and use the debug renderer.

Good for

  • Add a rigid body and collider to a Bevy 0.20 scene
  • Set up a fixed-step Rapier physics loop in Bevy
  • Detect collisions between entities and run gameplay logic
  • Create a kinematic character controller with movement and collisions
  • Run raycasts or overlap queries against the physics world
  • Configure a headless Bevy app with Rapier physics for tests

Bevy physics FAQ

Which Bevy and Rapier versions does Bevy physics target?

It targets Bevy 0.20 with bevy_rapier2d or bevy_rapier3d 0.37. It notes that 0.36 targets Bevy 0.19.

Should I use Rapier or Avian with Bevy physics?

The skill recommends bevy_rapier for its mature integration and suggests Avian when its ECS-native architecture or modular solver is the specific reason to choose it. Both should not be installed on the same simulated entities.

How do I avoid jitter when moving a dynamic body?

Repeatedly writing a dynamic body's Transform acts as a teleport and causes jitter, so the skill advises applying forces, impulses or velocity instead.

What happens when a body's physics state becomes NaN or infinite?

Rapier disables the body or collider and inserts disabled components. The skill says to fix the state and then remove that component rather than assume the body exploded silently.

How do I install Bevy physics in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/bevy-physics to use it in all your projects, or to .claude/skills/bevy-physics in one project. Or install the raea plugin, which includes it: /plugin marketplace add shinyobjectz/raea-skills, then /plugin install raea@raea.

Does Bevy physics run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Bevy physics?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

What are the best alternatives to Bevy physics?

The closest alternatives to Bevy physics are Bevy rendering, Bevy core concepts, Bevy, Bevy animation and Bevy ecs components.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from shinyobjectz/raea-skills

  1. Check and consult a project's generated vocabulary before naming anything

    • Open source
    • 40 GitHub stars
    • Knowledge and memory
  2. Blank template for authoring new raea skills with a standard section layout

    • Open source
    • 40 GitHub stars
    • Developer tools
  3. Lets an agent write and render video, motion graphics and 3D scenes as React code

    • Open source
    • 40 GitHub stars
    • Design and media
  4. Routes Bevy 0.20 tasks to the right sibling skill and pins the engine version

    • Open source
    • 40 GitHub stars
    • Developer tools
  5. Guides an agent through accessibility design and audits for Bevy 0.20 games

    • Open source
    • 40 GitHub stars
    • Developer tools
  6. Guides an agent through Bevy 0.20 animation: graphs, blending, events and easing

    • Open source
    • 40 GitHub stars
    • Developer tools