Unity 3D Physics

Document Unity 3D physics with Rigidbody, Colliders, and PhysX integration.

3|Updated Mar 13, 2026
One-click install
npx skills add https://github.com/Totes-MickGOATs/mcgoats-game-template --skill unity-3d-physics
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Unity 3D Physics
Source: https://github.com/Totes-MickGOATs/mcgoats-game-template/tree/main/engine/unity/skills/unity-physics-3d
Command: npx skills add https://github.com/Totes-MickGOATs/mcgoats-game-template --skill unity-3d-physics

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a comprehensive guide to implementing and optimizing 3D physics in Unity, enabling developers to create realistic and performant physics-based interactions in their games.

Core Features & Use Cases

  • Rigidbody & Collider Fundamentals: Understand core components for physics simulation.
  • Physics Materials & Layers: Control friction, bounciness, and collision interactions.
  • Force Application & Joints: Apply forces, torques, and connect objects with various joint types.
  • Raycasting & Overlap Tests: Detect and interact with physics objects in the scene.
  • WheelCollider for Vehicles: Implement realistic vehicle physics.
  • Performance Optimization: Learn best practices to avoid common pitfalls and ensure smooth gameplay.

Quick Start

Explain how to add a Rigidbody component to a GameObject and set its mass.

Frequently Asked Questions about Unity 3D Physics

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

FAQPage Schema
How do I optimize Unity 3D physics performance to avoid gameplay lag?

To optimize Unity 3D physics performance, implement best practices for PhysX integration like managing Layers and configuring Rigidbody components correctly to ensure smooth physics-driven gameplay mechanics without common pitfalls.

What is the best way to set up realistic vehicle physics using WheelColliders in Unity?

The best way to set up vehicle physics is using Unity's WheelCollider components. This Skill provides documentation and code examples for implementing realistic vehicle physics behaviors within the PhysX engine.

How do I apply forces and connect objects with joints in Unity PhysX?

To apply forces and connect objects in Unity PhysX, use Rigidbody components for force application and torques, and attach various joint types to enable complex physics-based interactions between game objects.

How do Raycasts and overlap tests detect physics objects in Unity?

Raycasts and overlap tests detect physics objects in Unity by projecting lines or volumes into the scene to find Colliders, allowing scripts to interact dynamically with the 3D physics environment.

How do I control friction and bounciness using Physics Materials in Unity?

You control friction and bounciness in Unity by creating and applying Physics Materials to Colliders, which adjusts the surface interaction properties for realistic physics-driven collisions.

Why are my Unity Rigidbody components behaving unpredictably during collisions?

Unpredictable Rigidbody collisions often result from incorrect mass settings or missing Physics Materials, so reviewing Rigidbody and Collider fundamentals ensures stable PhysX simulation and accurate force application.