unity-physicscore2d-joints

Configure Unity PhysicsCore2D joints with motors, springs, limits, anchors, and non-collision settings.

730|105|Updated Mar 4, 2017
One-click install
npx skills add https://github.com/Unity-Technologies/PhysicsExamples2D --skill unity-physicscore2d-joints
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-physicscore2d-joints
Source: https://github.com/Unity-Technologies/PhysicsExamples2D/tree/main/.claude/skills/unity-physicscore2d-joints
Command: npx skills add https://github.com/Unity-Technologies/PhysicsExamples2D --skill unity-physicscore2d-joints

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps developers reliably select and configure the right Unity PhysicsCore2D joints to create stable mechanical relationships between bodies, reducing trial-and-error tuning and unstable simulations.

Core Features & Use Cases

  • Joint selection rules for common scenarios (doors, pendulums, vehicles, conveyors) with clear guidance on when to use PhysicsDistanceJoint, PhysicsFixedJoint, PhysicsHingeJoint, PhysicsIgnoreJoint, PhysicsRelativeJoint, PhysicsSliderJoint, and PhysicsWheelJoint.
  • A consistent creation pattern: start from defaultDefinition, set precise local anchors, choose appropriate limits/springs/motors, and maintain collideConnected = false for joined pairs.
  • Best practices and worked assemblies demonstrating practical setups and troubleshooting tips for anchor placement, wake behavior, and threshold-based breakage.

Quick Start

Create a hinge joint using defaultDefinition, align local anchors at creation, and test motor and limits in a short simulation.

Frequently Asked Questions about unity-physicscore2d-joints

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

FAQPage Schema
How do I configure Unity 2D joints for stable mechanical rigs?

To configure Unity 2D joints for stable mechanical rigs, start from defaultDefinition, set precise local anchors, choose appropriate limits, springs, or motors, and maintain collideConnected = false for joined pairs to prevent unstable simulations.

What is the best way to choose between PhysicsHingeJoint and PhysicsSliderJoint in Unity 2D?

Choosing between PhysicsHingeJoint and PhysicsSliderJoint in Unity 2D depends on your assembly: use hinge joints for pendulums and doors requiring angular rotation, and slider joints for linear movement like conveyors to ensure stable mechanical relationships.

How do I set up a motor and limits for a Unity 2D PhysicsWheelJoint?

To set up a motor and limits for a Unity 2D PhysicsWheelJoint, begin with defaultDefinition, configure the motor speed, adjust spring.frequency, and define limit settings, ensuring accurate local anchors to maintain stable vehicle behavior.

Why does my Unity 2D physics joint simulation behave erratically during runtime?

Erratic Unity 2D physics joint simulations often result from inaccurate local anchor placement, failing to set collideConnected = false between joined bodies, or improper runtime tuning of motor speed and spring.frequency thresholds.

Can I use PhysicsDistanceJoint and PhysicsRelativeJoint together in the same Unity 2D assembly?

Yes, you can use PhysicsDistanceJoint and PhysicsRelativeJoint together in a Unity 2D assembly by configuring defaultDefinition for each, ensuring accurate local anchors, and verifying that collideConnected = false to manage complex mechanical relationships.

When should I use PhysicsFixedJoint versus PhysicsIgnoreJoint in Unity 2D physics?

Use PhysicsFixedJoint in Unity 2D physics to rigidly lock two bodies together, while PhysicsIgnoreJoint is applied to manage collision relationships, ensuring proper mechanical behavior when bodies need constrained movement without collision interference.