Immerseum SDK: VR Simulator (version: RC-1.0.0)
       [view as Desktop | Tablet | Mobile]
OnApplyRigidbody Event
Example 

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.

Syntax
public event EventManager.ApplyRigidbodyAction OnApplyRigidbody
Example
A sample listener for the OnApplyRigidbody event.
public class myClass : MonoBehaviour {
    void OnEnable() {
        EventManager.OnApplyRigidbody += myCustomListener;
    }
    
    void OnDisable() {
        EventManager.OnApplyRigidbody -= myCustomListener;
    }
    
    void myCustomListener(int controller) {
        // Custom listener logic goes here.
    }
}
See Also

Reference

EventManager Class
EventManager Members
Event Invocation: EventManager.applyRigidbody

 

 


Copyright (c) 2016-2017 Immerseum Inc. All rights reserved.

Send Feedback