Struct CollisionEvent
A Collision event is fired when two colliders collide. The event contains information about the colliders involved in the collision.
Namespace: Motphys.Rigidbody
Assembly: solution.dll
Syntax
public struct CollisionEvent
Fields
collider1
Declaration
public BaseCollider collider1
Field Value
Type | Description |
---|---|
BaseCollider | The first collider involved in the collision. |
collider2
Declaration
public BaseCollider collider2
Field Value
Type | Description |
---|---|
BaseCollider | The second collider involved in the collision. |
Properties
contactCount
Declaration
public int contactCount { get; }
Property Value
Type | Description |
---|---|
System.Int32 | The contact number |