Data class to contain all necessary information related to a controller transform More...
Public Member Functions | |
GTransform (Vector3 pos, Quaternion quat, Vector3 vel, float t) | |
Create a GTransform objet with the specified position, quaternion, velocity, and time data points. More... | |
GTransform | Copy () |
Create a copy of the GTransform instance More... | |
Public Attributes | |
Vector3 | position |
The position vector generated by the IController More... | |
Quaternion | rotation |
The rotation Quaternion generated by the IController More... | |
Vector3 | velocity |
The velocity vector generated by the IController More... | |
float | time |
The current time at which the GTransform was generated More... | |
Data class to contain all necessary information related to a controller transform
|
inline |
Create a GTransform objet with the specified position, quaternion, velocity, and time data points.
pos | The position Vector3 generated by the IController |
quat | The rotation quaternion generated by the IController |
vel | The velocity Vector3 generated by the IController |
t | The current time as determined by the IController |
|
inline |
Create a copy of the GTransform instance
GTransform
with the same data as the object this method was called on. Vector3 Gestures.GTransform.position |
The position vector generated by the IController
Quaternion Gestures.GTransform.rotation |
The rotation Quaternion generated by the IController
float Gestures.GTransform.time |
The current time at which the GTransform was generated
<remark> Best practice is using Time.time, or some time from an independent epoch. </remark>
Vector3 Gestures.GTransform.velocity |
The velocity vector generated by the IController