Immerseum SDK: VR Simulator (version: BETA-0.9)
       [view as Desktop | Tablet | Mobile]
positionController Method
Example 
Integer which identifies which simulated controller being positioned. Accepts 0 for the left-hand controller, and 1 for the right-hand controller.
The position to which the simulated controller should be moved, expressed as a ControllerPositions.

Fires the OnPositionControllerStart 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 positionController( 
   int controller,
   ControllerPositions targetPosition
)

Parameters

controller
Integer which identifies which simulated controller being positioned. Accepts 0 for the left-hand controller, and 1 for the right-hand controller.
targetPosition
The position to which the simulated controller should be moved, expressed as a ControllerPositions.
Example
// Fires the OnPositionControllerStart event, positioning the left-hand controller 
// to the Reaching position.
EventManager.moveController(0, ControllerPositions.Reaching);
See Also

Reference

EventManager Class
EventManager Members

 

 


Copyright (c) 2015 Immerseum Inc. All rights reserved.

Send Feedback