
Description
physics-3d-collision is an agent skill from Unity Technologies that helps a coding agent diagnose 3D PhysX collision and trigger problems in MonoBehaviour-based Unity projects. It applies when OnCollisionEnter or OnTriggerEnter does not fire, objects pass through each other or raycasts miss. The skill corrects a common misconception: two kinematic triggers do fire OnTriggerEnter, because Unity's trigger matrix differs from its collision matrix. When that case comes up, the agent checks, in order, the Layer Collision Matrix in the Physics settings, whether the script sits on the right GameObject, the method signature, and how the kinematic body is moved, since setting velocity on a kinematic Rigidbody is ignored and MovePosition should be used. The agent is told not to verify with Physics.Simulate() in edit mode and not to suggest changing a valid setup.…
Highlights
- Diagnoses collision and trigger callbacks that don't fire
- Explains the trigger matrix versus the collision matrix
- Ordered checklist: layers, script placement, signature, movement
- Covers objects passing through each other and missed raycasts
Ratings & Reviews
No ratings yet
Be the first to rate physics-3d-collision.
People also visit

threejs-gameplay-systems
Build and iterate playable Three.js game systems: starter scaffold
physics-3d-collision FAQ
What does this skill do?
It helps an AI agent find out why 3D collisions, triggers or raycasts are not behaving as expected in a Unity project using PhysX.
How do I install it?
Run: npx skills add https://github.com/unity-technologies/skills --skill physics-3d-collision
Do two kinematic triggers fire OnTriggerEnter?
Yes. The skill states this combination is valid and does fire, and directs you to check the layer matrix, script placement, method signature and movement method instead.
How should kinematic bodies be moved?
With Rigidbody.MovePosition() or by writing transform.position. Assigning Rigidbody.velocity is ignored on kinematic bodies.
What are the best physics-3d-collision alternatives?
Popular alternatives to physics-3d-collision include unity-physics, godot-physics and r3f-physics. See all physics-3d-collision alternatives









