public class OpenVRTrackedController extends java.lang.Object implements VRTrackedController
Constructor and Description |
---|
OpenVRTrackedController(int controllerIndex,
OpenVRInput hardware,
java.lang.String name,
java.lang.String manufacturer,
VREnvironment environment)
Wrap a new VR tracked controller on an OpenVR system.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getControllerManufacturer()
Get the controller manufacturer.
|
java.lang.String |
getControllerName()
Get the controller name.
|
Quaternion |
getOrientation()
Get the orientation of the tracked device.
|
Matrix4f |
getPose()
Get the pose of the tracked device.
|
Vector3f |
getPosition()
Get the position of the tracked device.
|
public OpenVRTrackedController(int controllerIndex, OpenVRInput hardware, java.lang.String name, java.lang.String manufacturer, VREnvironment environment)
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.public Vector3f getPosition()
VRTrackedController
pose
.getPosition
in interface VRTrackedController
VRTrackedController.getOrientation()
,
VRTrackedController.getPose()
public Quaternion getOrientation()
VRTrackedController
pose
.getOrientation
in interface VRTrackedController
VRTrackedController.getPosition()
,
VRTrackedController.getPose()
public Matrix4f getPose()
VRTrackedController
position
and the orientation
of the device.getPose
in interface VRTrackedController
VRTrackedController.getPosition()
,
VRTrackedController.getOrientation()
public java.lang.String getControllerName()
VRTrackedController
getControllerName
in interface VRTrackedController
public java.lang.String getControllerManufacturer()
VRTrackedController
getControllerManufacturer
in interface VRTrackedController