unity-physics

Execute Unity physics raycasts, overlap checks, and gravity settings.

Updated Apr 30, 2026
One-click install
npx skills add https://github.com/jinluli/EnglishLearnTool --skill unity-physics-jinluli
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-physics
Source: https://github.com/jinluli/EnglishLearnTool/tree/main/Packages/SkillsForUnity/unity-skills~/skills/physics
Command: npx skills add https://github.com/jinluli/EnglishLearnTool --skill unity-physics-jinluli

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill addresses the challenge of managing complex Unity physics operations efficiently. It helps users perform tasks like raycasting, overlap checks, and configure gravity settings with ease.

Core Features & Use Cases

  • Raycasting: Perform raycasts to detect collisions and get hit information.
  • Overlap Checks: Check for colliders in a specified area.
  • Gravity Settings: Get and set global gravity settings.
  • Use Case: A game developer wants to implement physics-based interactions in their game. They can use this Skill to perform raycasts to detect collisions and set gravity for different objects.

Quick Start

Use the physics_raycast skill to cast a ray from position (1, 2, 3) in the direction (0, 0, 1) 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 a raycast in Unity to detect collisions?

You can execute a Unity raycast by specifying an origin position, a directional vector, and a maximum distance to detect colliders and retrieve precise hit information for game interactions.

What is the best way to check for overlapping colliders in a Unity physics scene?

The best way to check for overlapping colliders is to perform an overlap check within a specified area in your Unity physics scene. This identifies all colliders present in that defined space without firing a ray.

Can I use scripts to modify global gravity settings in Unity?

Yes, you can use scripts to get and set global gravity settings in Unity. This allows you to dynamically adjust the physics engine's gravity for different objects and simulation scenarios during gameplay.

Does this Unity physics approach work for game development and simulation scenarios?

Yes, this approach uses Unity's physics engine to interact with the game world, making it fully suited for game development and simulation scenarios. It handles raycasts, overlaps, and gravity configurations efficiently.

How do I cast a ray from a specific position like (1, 2, 3) in Unity?

To cast a ray from a specific position in Unity, you define the starting coordinates and provide a directional vector like (0, 0, 1) along with a maximum distance. The physics engine then detects any collisions along that path.