Immerseum SDK: VR Simulator (version: RC-1.0.0)
       [view as Desktop | Tablet | Mobile]
instantiateController Method
Example 
Integer which identifies which simulated controller to instantiate. Accepts 0 for the left-hand controller, and 1 for the right-hand controller.
If true, removes the Collider from the simulated controller after instantiation. If false, leaves the Collider and applies properties as per the ControllerManager's settings.

Fires the OnInstantiateController event.

Be Aware Be Aware

Listeners are expected to have a return type of void and to accept the same parameters as this method (see below).

Syntax
public static void instantiateController( 
   int controller,
   bool removeCollider
)

Parameters

controller
Integer which identifies which simulated controller to instantiate. Accepts 0 for the left-hand controller, and 1 for the right-hand controller.
removeCollider
If true, removes the Collider from the simulated controller after instantiation. If false, leaves the Collider and applies properties as per the ControllerManager's settings.
Example
// Instantiates both simulated controllers, applying a collider based on
// ControllerManager properties.
EventManager.instantiateController(0, !ControllerManager.applyCollider);
EventManager.instantiateController(1, !ControllerManager.applyCollider);
See Also

Reference

EventManager Class
EventManager Members

 

 


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

Send Feedback