S&box Wiki

Revision Difference

Collisions#561171

<cat>Code.Physics</cat>⤶ <title>Collisions</title>⤶ ⤶ # Detecting Collisions⤶ ⤶ To detect when 2 colliders touch, both objects must have some kind of collider component attached. Then create a component on the `same GameObject` as one of these colliders and inherit from `Component, Component.ICollisionListener`⤶ ⤶ <note>No code example for now, still waiting on a fix for ragdolls to work properly with this :/</note>⤶ ⤶