unity-physicscore2d-misc-api

Documents Unity 6000.5 PhysicsCore2D miscellaneous API types with signatures and members.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Unity 6000.5's PhysicsCore2D API post-dates most AI training data, so coding assistants often hallucinate member names or signatures. This Skill provides an authoritative, generated API reference for miscellaneous PhysicsCore2D types so code written against them is accurate.

Core Features & Use Cases

  • Complete API Surface: Lists every property, field, method signature, and nested type for IPhysicsJoint, PhysicsBuffer, PhysicsBufferPair, PhysicsEditorOnly, PhysicsTransformTweener, PhysicsTransformWatcher, PhysicsTransformWriter, and PhysicsWorldRenderer.
  • Authoritative Source: Generated directly from Unity 6000.5.0b9 UnityEngine.PhysicsCore2DModule.xml, with links to official Unity documentation.
  • Use Case: When writing a custom physics world renderer or transform write pipeline in Unity 6000.5, consult this reference to get exact method signatures like WriteWorldTransforms or RenderWorlds_SRP instead of guessing.

Quick Start

Ask the AI to show the method signatures and members of PhysicsWorldRenderer from the PhysicsCore2D misc API reference before writing rendering code.

Frequently Asked Questions about unity-physicscore2d-misc-api

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

FAQPage Schema
How do I render a PhysicsWorld in Unity PhysicsCore2D?

Use PhysicsWorldRenderer, which provides InitializeRendering, RenderWorlds_BIRP for the built-in pipeline, and RenderWorlds_SRP for scriptable render pipelines. Its nested DrawerGroup type handles drawing circles, capsules, polygons, lines, and points via a CommandBuffer.

What types are covered in the PhysicsCore2D miscellaneous API?

The reference covers IPhysicsJoint, PhysicsBuffer, PhysicsBufferPair, PhysicsEditorOnly, PhysicsTransformTweener, PhysicsTransformWatcher, PhysicsTransformWriter, and PhysicsWorldRenderer, including all properties, methods, and nested types.

How do I write transforms back from a Unity 2D physics world?

Use PhysicsTransformWriter.WriteWorldTransforms with the target PhysicsWorld, simulation type, transform write mode, and plane parameters. PhysicsTransformTweener additionally supports tweened writes via parallel jobs and transform access arrays.

Does this PhysicsCore2D reference apply to older Unity Physics2D?

No, it documents the newer Unity.U2D.Physics API in Unity 6000.5, not the legacy Physics2D component API. Types like PhysicsBuffer and PhysicsWorldRenderer exist only in the PhysicsCore2D module.

What is PhysicsBuffer used for in Unity 2D physics?

PhysicsBuffer is an internal buffer that marshals results efficiently from the native physics engine. It converts to and from NativeArray and Span types, and must not be disposed while a NativeArray or Span view is still active.