An example of integrating a gun accessory is described with VIVE Tracker (3.0):
Pitch: Angle that rotates around x-axis.
Yaw: Angle that rotates around y-axis.
Roll: Angle that rotates around z-axis
D
x
: Center distance of x-axis between accessory and tracker.
D
y
: Center distance of y-axis between accessory and tracker.
D
z
: Center distance of z-axis between accessory and tracker.
Content developers can collect the above information and transform Tracker pose to
accessory pose.
Assume Tracker rotation matrix is
, accessory rotation matrix
=
.
And accessory position
=
+
*