Example #1
0
    public Quaternion GetPosRotation(uint ind)
    {
        var pose = new OVR_Utils.RigidTransform(poses[ind].mDeviceToAbsoluteTracking);
        var mat  = Matrix4x4.TRS(pose.pos, pose.rot, Vector3.one);
        var rot  = OVR_Utils.GetRotation(mat);

        return(rot);
    }
Example #2
0
 public void Interpolate(RigidTransform to, float t)
 {
     pos = OVR_Utils.Lerp(pos, to.pos, t);
     rot = OVR_Utils.Slerp(rot, to.rot, t);
 }