Skip to content
Kitbay
Submit

create-2d-physics

LicenseRef-Unity-Companion-LicenseUpdated on Nov 6, 20261,239GitHub stars

A Unity skill for creating and fixing 2D physics.

What the skill teaches

A Unity skill for creating and fixing 2D physics. It first decides which of Unity's two unrelated 2D physics systems is involved, the newer 2D Physics Core or the older Rigidbody 2D components, by checking scene components, existing scripts and the wording of the request, since code for the wrong one compiles but does nothing. It then follows a topic map and worked examples for that system, records a baseline, runs C# in the Editor through the Unity CLI's script eval command with a table of common compile errors, checks behaviour with temporary logs it later removes, and stops if the user actually means 3D physics.

Capabilities

  • Choose between 2D Physics Core and Rigidbody 2D
  • Create 2D colliders, bodies and joints
  • Fix 2D physics behaviour
  • Run physics C# in the Editor with script eval