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 Summary
ConstructorDescriptionOpenVRTrackedController
(int controllerIndex, OpenVRInput 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
-
OpenVRTrackedController
public 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
-
getPosition
Description copied from interface:VRTrackedController
Get the position of the tracked device. This value is the translation component of the devicepose
.- Specified by:
getPosition
in interfaceVRTrackedController
- Returns:
- the position of the tracked device.
- See Also:
-
getOrientation
Description copied from interface:VRTrackedController
Get the orientation of the tracked device. This value is the rotation component of the devicepose
.- Specified by:
getOrientation
in interfaceVRTrackedController
- Returns:
- the orientation of the tracked device.
- See Also:
-
getPose
Description copied from interface:VRTrackedController
Get the pose of the tracked device. The pose is a 4x4 matrix than combine theposition
and theorientation
of the device.- Specified by:
getPose
in interfaceVRTrackedController
- Returns:
- the pose of the tracked device.
- See Also:
-
getControllerName
Description copied from interface:VRTrackedController
Get the controller name.- Specified by:
getControllerName
in interfaceVRTrackedController
- Returns:
- the controller name.
-
getControllerManufacturer
Description copied from interface:VRTrackedController
Get the controller manufacturer.- Specified by:
getControllerManufacturer
in interfaceVRTrackedController
- Returns:
- the controller manufacturer.
-