Immerseum.VRSimulator Namespace > EventManager Class : OnApplyRigidbody Event |
Fired during the instantiation of a simulated controller. During this event, rigidbodies: https are applied to a specific simulated controller based on the configuration settings in the ControllerManager.
public event EventManager.ApplyRigidbodyAction OnApplyRigidbody
public class myClass : MonoBehaviour { void OnEnable() { EventManager.OnApplyRigidbody += myCustomListener; } void OnDisable() { EventManager.OnApplyRigidbody -= myCustomListener; } void myCustomListener(int controller) { // Custom listener logic goes here. } }