Esempio n. 1
0
    public static bool GetInputPose(int playerID, byte device, byte control, ref Vector3 position, ref Quaternion rotation)
    {
        var pos = new AXRVector3D();
        var rot = new AXRVector4D();

        if (ocs_GetInputPose(playerID, device, control, ref pos, ref rot) == false)
        {
            return(false);
        }

        position = pos.toVector3();
        rotation = rot.toQuaternion();
        return(true);
    }
Esempio n. 2
0
 private static extern void ocs_PendInputPose(byte device, byte control, AXRVector3D position, AXRVector4D rotation);
Esempio n. 3
0
 private static extern void ocs_SetCameraOrientation(AXRVector4D rotation, ref int viewNumber);
Esempio n. 4
0
 private static extern bool ocs_GetInputPose(int playerID, byte device, byte control, ref AXRVector3D position, ref AXRVector4D rotation);