Scripting API

Collision

class in UnityEngine · UnityEngine.PhysicsModule

12 of 23 of Unity's membersUnity's documentation
In Tassix

Describes a collision, seen from the receiving collider (OnCollisionEnter and friends).

Properties 9

Component? body { get; }
Collider collider { get; }
int contactCount { get; }
ContactPoint[] contacts { get; }
GameObject gameObject { get; }
Vector3 impulse { get; }
Vector3 relativeVelocity { get; }
Rigidbody? rigidbody { get; }
Transform transform { get; }

Methods 2

ContactPoint GetContact(int index)
int GetContacts(ContactPoint[] contacts)
int GetContacts(List<ContactPoint> contacts)

Not in Tassix yet 11

angularVelocity articulationBody linearVelocity thisAngularVelocity thisArticulationBody thisBody thisCollider thisGameObject thisLinearVelocity thisRigidbody thisTransform