Immerseum SDK: VR Simulator (version: RC-1.0.0)
       [view as Desktop | Tablet | Mobile]
moveController(Int32,ControllerPositions) Method
Example 
Integer which identifies which simulated controller being moved. 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 OnMoveControllerStart 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 moveController( 
   int controller,
   ControllerPositions targetPosition
)

Parameters

controller
Integer which identifies which simulated controller being moved. 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 OnMoveControllerStart event, moving the left-hand controller 
// to the origin position.
EventManager.moveController(0, ControllerPositions.Origin);
See Also

Reference

EventManager Class
EventManager Members
Overload List

 

 


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

Send Feedback