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);
    }