unity-physics

Perform raycasts, overlap queries, and gravity configuration in Unity.

Updated Mar 30, 2026
One-click install
npx skills add https://github.com/krl76/MP-Study-Projects --skill unity-physics-krl76
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-physics
Source: https://github.com/krl76/MP-Study-Projects/tree/main/Practice1/.codex/skills/unity-skills/skills/physics
Command: npx skills add https://github.com/krl76/MP-Study-Projects --skill unity-physics-krl76

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Unity physics operations to perform raycasts, overlap checks, gravity configuration, and collider interactions within Unity projects.

Core Features & Use Cases

  • Raycasting utilities for gameplay mechanics and collision detection.
  • Overlap checks for triggers and area queries.
  • Gravity configuration for scene-wide physics behavior.
  • Example scenarios: detect ground, implement jump checks, or govern character movement with physics.

Quick Start

In Unity, call the physics_raycast function with origin (0,5,0) and direction (0,-1,0) to detect ground hits.

Frequently Asked Questions about unity-physics

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

FAQPage Schema
How do I perform a raycast in Unity to detect ground hits?

To perform a Unity raycast for ground detection, call the physics_raycast function with an origin and direction vector to return collision hit data. This action queries colliders along the ray path for gameplay mechanics.

Can I check collider overlaps for trigger areas in Unity?

Yes, Unity overlap checks query specific areas for colliders and trigger interactions. The overlap function detects physics objects within defined bounds, returning collision data for area-based gameplay logic.

What is the best way to configure gravity for Unity physics objects?

Configuring Unity gravity involves using the gravity get and set actions to adjust scene-wide physics behavior. This governs character movement and falling dynamics across game objects.

How do I manage layer collision settings during Unity game development?

Unity layer collision management controls interactions between defined layers. The physics Skill provides actions to configure which layers collide, preventing unwanted interactions between game objects.

Does this Unity physics Skill require external dependencies for collision checks?

No, the Unity physics Skill operates with zero external dependencies to perform raycasts, overlaps, and gravity configuration. It applies directly to game development workflows requiring physics queries.

Why use physics queries for character movement instead of manual transforms?

Physics queries like raycasts and overlaps detect colliders for jump checks and ground detection, ensuring accurate collision responses. This prevents clipping and governs realistic movement with gravity.