Class RigidbodyContactEventManager
Add this component to an in-scene placed GameObject to provide faster collision event processing between Rigidbody instances and optionally static colliders.
IContact
IContact
Contact
Inherited Members
Namespace: Unity.Netcode.Components
Assembly: Unity.Netcode.Runtime.dll
Syntax
[AddComponentMenu("Netcode/Rigidbody Contact Event Manager")]
public class RigidbodyContactEventManager : MonoBehaviour
Properties
Instance
Declaration
public static RigidbodyContactEventManager Instance { get; }
Property Value
Type | Description |
---|---|
Rigidbody |
Methods
RegisterHandler(IContactEventHandler, bool)
Any IContact
Declaration
public void RegisterHandler(IContactEventHandler contactEventHandler, bool register = true)
Parameters
Type | Name | Description |
---|---|---|
IContact |
contactEventHandler | |
bool | register | true to register and false to remove from being registered |
Remarks
You should enable provides
You can enable this during run time or within the editor's inspector view.