unity-physics

Perform Unity raycasts, overlap checks, and gravity configuration.

1|Updated Jan 25, 2026
One-click install
npx skills add https://github.com/mufengbufeng/EF --skill unity-physics-mufengbufeng
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-physics
Source: https://github.com/mufengbufeng/EF/tree/main/UnityProject/.claude/skills/unity-skills/skills/physics
Command: npx skills add https://github.com/mufengbufeng/EF --skill unity-physics-mufengbufeng

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Unity physics operations simplify performing raycasts, overlap checks, and gravity configuration in Unity.

Core Features & Use Cases

  • Raycasts with hit info and distance
  • Overlap checks for collider detection
  • Gravity configuration and tuning for scenes
  • Use Case: Enable scene interactions and AI perception through physics queries

Quick Start

Invoke the appropriate physics function (e.g., physics_raycast) with origin, direction, and optional parameters to perform a raycast in your scene.

Frequently Asked Questions about unity-physics

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I perform Unity raycasts with origin and direction parameters?

To perform a Unity raycast, invoke the physics_raycast function with origin, direction, and optional parameters. This returns hit info and distance, enabling scene interactions and AI perception through deterministic physics queries.

What is the best way to check collider overlaps in Unity for gamedev?

The best way to check Unity collider overlaps is using the physics_check_overlap function. It provides deterministic physics queries for collider detection, which is applicable in gameplay scripting and level design to enable scene interactions.

Can I control and tune gravity settings for Unity scenes?

Yes, you can control and tune gravity in Unity scenes using the physics_set_gravity function. This allows precise gravity configuration and tuning for scenes, applicable in AI systems that require deterministic physics adjustments.

Does automated Unity physics support AI perception and gameplay scripting?

Automated Unity physics supports AI perception and gameplay scripting through functions like physics_raycast and physics_check_overlap. These provide defined parameters and outputs for deterministic physics queries and gravity adjustments.

Why use deterministic physics queries for Unity level design?

Deterministic physics queries are used for Unity level design to ensure reliable scene interactions. By using functions like physics_raycast for hit info and distance, you achieve consistent gravity control and overlap checks.

What are the limitations of Unity raycasts without defined parameters?

Without defined parameters, Unity raycasts lack hit info and distance outputs needed for reliable scene interactions. Using functions with defined parameters ensures deterministic physics queries and proper gravity adjustments.