Interface IContactEventHandler
Namespace: Unity.Netcode.Components
Assembly: Unity.Netcode.Runtime.dll
Syntax
public interface IContactEventHandler
Methods
ContactEvent(ulong, Vector3, Rigidbody, Vector3, bool, Vector3)
Declaration
void ContactEvent(ulong eventId, Vector3 averagedCollisionNormal, Rigidbody collidingBody, Vector3 contactPoint, bool hasCollisionStay = false, Vector3 averagedCollisionStayNormal = default)
Parameters
Type | Name | Description |
---|---|---|
ulong | eventId | |
Vector3 | averagedCollisionNormal | |
Rigidbody | collidingBody | |
Vector3 | contactPoint | |
bool | hasCollisionStay | |
Vector3 | averagedCollisionStayNormal |
GetRigidbody()
Declaration
Rigidbody GetRigidbody()
Returns
Type | Description |
---|---|
Rigidbody |