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
    public static bool GetInputRaycastHit(byte device, byte control, ref Vector3 origin, ref Vector3 hitPosition, ref Vector3 hitNormal)
    {
        var ori  = new AXRVector3D();
        var pos  = new AXRVector3D();
        var norm = new AXRVector3D();

        if (ocs_GetInputRaycastHit(device, control, ref ori, ref pos, ref norm) == false)
        {
            return(false);
        }

        origin      = ori.toVector3();
        hitPosition = pos.toVector3();
        hitNormal   = norm.toVector3();
        return(true);
    }
Esempio n. 3
0
 private static extern bool ocs_GetInputRaycastHit(byte device, byte control, ref AXRVector3D origin, ref AXRVector3D hitPosition, ref AXRVector3D hitNormal);
Esempio n. 4
0
 private static extern void ocs_PendInputPose(byte device, byte control, AXRVector3D position, AXRVector4D rotation);
Esempio n. 5
0
 private static extern bool ocs_GetInputPose(int playerID, byte device, byte control, ref AXRVector3D position, ref AXRVector4D rotation);
Esempio n. 6
0
 private static extern void ocs_PendInputRaycastHit(int playerID, byte device, byte control, AXRVector3D origin, AXRVector3D hitPosition, AXRVector3D hitNormal);