Package com.jme3.input.vr.lwjgl_openvr
Class LWJGLOpenVRTrackedController
java.lang.Object
com.jme3.input.vr.lwjgl_openvr.LWJGLOpenVRTrackedController
- 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 Summary
ConstructorsConstructorDescriptionLWJGLOpenVRTrackedController(int controllerIndex, VRInputAPI hardware, String name, String manufacturer, VREnvironment environment) Wrap a new VR tracked controller on an OpenVR system. - 
Method Summary
Modifier 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
- 
LWJGLOpenVRTrackedController
public LWJGLOpenVRTrackedController(int controllerIndex, VRInputAPI 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
- 
getPosition
Description copied from interface:VRTrackedControllerGet the position of the tracked device. This value is the translation component of the devicepose.- Specified by:
 getPositionin interfaceVRTrackedController- Returns:
 - the position of the tracked device.
 - See Also:
 
 - 
getOrientation
Description copied from interface:VRTrackedControllerGet the orientation of the tracked device. This value is the rotation component of the devicepose.- Specified by:
 getOrientationin interfaceVRTrackedController- Returns:
 - the orientation of the tracked device.
 - See Also:
 
 - 
getPose
Description 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 interfaceVRTrackedController- Returns:
 - the pose of the tracked device.
 - See Also:
 
 - 
getControllerName
Description copied from interface:VRTrackedControllerGet the controller name.- Specified by:
 getControllerNamein interfaceVRTrackedController- Returns:
 - the controller name.
 
 - 
getControllerManufacturer
Description copied from interface:VRTrackedControllerGet the controller manufacturer.- Specified by:
 getControllerManufacturerin interfaceVRTrackedController- Returns:
 - the controller manufacturer.
 
 
 -