unity-physics

Perform raycasts, overlap checks, and configure gravity in Unity.

Updated May 9, 2026
One-click install
npx skills add https://github.com/krikommp/chess-game --skill unity-physics-krikommp
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-physics
Source: https://github.com/krikommp/chess-game/tree/main/.agents/skills/unity-skills/skills/physics
Command: npx skills add https://github.com/krikommp/chess-game --skill unity-physics-krikommp

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill streamlines Unity physics operations, enabling users to perform raycasts, overlap checks, and configure gravity without complex scripting.

Core Features & Use Cases

  • Raycasting: Perform raycasts to detect collisions and determine the distance to the hit point.
  • Overlap Checks: Check for colliders in a specified area, useful for detecting proximity.
  • Gravity Configuration: Get and set global gravity settings for the scene.
  • Use Case: For a 3D game, use this Skill to detect when a player is near a pickup item and to control the gravity for different game scenarios.

Quick Start

Cast a ray from the origin (0, 5, 0) in the direction (0, -1, 0) with a maximum distance of 10 units.

Frequently Asked Questions about unity-physics

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

FAQPage Schema
How do I perform raycasting in Unity to detect collisions and measure distance?

You can perform Unity raycasting to detect collisions and measure distance by specifying an origin, direction, and maximum distance. This Skill handles the raycast operations to return the exact collision hit point without complex scripting.

What is the best way to check for overlapping colliders in a Unity 3D game?

Checking for overlapping colliders in Unity involves performing overlap checks within a specified area. This Skill enables proximity detection for interactive 3D game scenarios, such as detecting when a player is near a pickup item.

How do I configure global gravity settings for a Unity scene?

To configure global gravity settings for a Unity scene, you get and set the physics gravity values. This Skill allows you to easily control and adjust global gravity to accommodate different game scenarios without manual physics manager configuration.

Do I need a specific Unity environment to use physics operations for 3D game development?

Using Unity physics operations for 3D game development requires a Unity environment and a basic understanding of physics concepts. This Skill is specifically designed for 3D game development and interactive simulations requiring raycasts, overlap checks, and gravity configuration.

Can I detect player proximity to items using Unity physics overlap checks?

You can detect player proximity to items using Unity physics overlap checks. By checking for colliders in a specified area, this Skill allows you to easily determine when a player is near a pickup item or other interactive objects.

Why use a dedicated script for Unity physics instead of manual coding?

Using a dedicated script for Unity physics streamlines operations like raycasts, overlap checks, and gravity configuration without complex scripting. It simplifies 3D game development by handling the underlying physics logic, reducing manual coding errors and development time.