Package com.jme3.input.vr.openvr
Class OpenVRTrackedController
java.lang.Object
com.jme3.input.vr.openvr.OpenVRTrackedController
- All Implemented Interfaces:
- VRTrackedController
A controller that is tracked within the VR environment. Such a controller can provide its position within the VR space.
- 
Constructor SummaryConstructorsConstructorDescriptionOpenVRTrackedController(int controllerIndex, OpenVRInput hardware, String name, String manufacturer, VREnvironment environment) Wrap a new VR tracked controller on an OpenVR system.
- 
Method SummaryModifier and TypeMethodDescriptionGet the controller manufacturer.Get the controller name.Get the orientation of the tracked device.getPose()Get the pose of the tracked device.Get the position of the tracked device.
- 
Constructor Details- 
OpenVRTrackedControllerpublic OpenVRTrackedController(int controllerIndex, OpenVRInput hardware, String name, String manufacturer, VREnvironment environment) Wrap a new VR tracked controller on an OpenVR system.- Parameters:
- controllerIndex- the index of the controller within the underlying VR system.
- hardware- the underlying VR system.
- name- the name of the controller.
- manufacturer- the manufacturer of the controller.
- environment- the VR environment.
 
 
- 
- 
Method Details- 
getPositionDescription copied from interface:VRTrackedControllerGet the position of the tracked device. This value is the translation component of the devicepose.- Specified by:
- getPositionin interface- VRTrackedController
- Returns:
- the position of the tracked device.
- See Also:
 
- 
getOrientationDescription copied from interface:VRTrackedControllerGet the orientation of the tracked device. This value is the rotation component of the devicepose.- Specified by:
- getOrientationin interface- VRTrackedController
- Returns:
- the orientation of the tracked device.
- See Also:
 
- 
getPoseDescription copied from interface:VRTrackedControllerGet the pose of the tracked device. The pose is a 4x4 matrix than combine thepositionand theorientationof the device.- Specified by:
- getPosein interface- VRTrackedController
- Returns:
- the pose of the tracked device.
- See Also:
 
- 
getControllerNameDescription copied from interface:VRTrackedControllerGet the controller name.- Specified by:
- getControllerNamein interface- VRTrackedController
- Returns:
- the controller name.
 
- 
getControllerManufacturerDescription copied from interface:VRTrackedControllerGet the controller manufacturer.- Specified by:
- getControllerManufacturerin interface- VRTrackedController
- Returns:
- the controller manufacturer.
 
 
-