Immerseum SDK: VR Simulator (version: BETA-0.9)
       [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) 2015 Immerseum Inc. All rights reserved.

Send Feedback