Beispiel #1
0
    static bool Rigidbody_SweepTest__Vector3__RaycastHit__Single__QueryTriggerInteraction(JSVCall vc, int argc)
    {
        int len = argc;

        if (len == 4)
        {
            UnityEngine.Vector3 arg0 = (UnityEngine.Vector3)JSApi.getVector3S((int)JSApi.GetType.Arg);
            int r_arg1 = JSApi.incArgIndex();
            UnityEngine.RaycastHit arg1;
            System.Single          arg2 = (System.Single)JSApi.getSingle((int)JSApi.GetType.Arg);
            UnityEngine.QueryTriggerInteraction arg3 = (UnityEngine.QueryTriggerInteraction)JSApi.getEnum((int)JSApi.GetType.Arg);
            JSApi.setBooleanS((int)JSApi.SetType.Rval, (System.Boolean)(((UnityEngine.Rigidbody)vc.csObj).SweepTest(arg0, out arg1, arg2, arg3)));
            JSApi.setArgIndex(r_arg1);
            JSMgr.datax.setObject((int)JSApi.SetType.ArgRef, arg1);
        }

        return(true);
    }
Beispiel #2
0
    static bool Rigidbody_SweepTestAll__Vector3__Single__QueryTriggerInteraction(JSVCall vc, int argc)
    {
        int len = argc;

        if (len == 3)
        {
            UnityEngine.Vector3 arg0 = (UnityEngine.Vector3)JSApi.getVector3S((int)JSApi.GetType.Arg);
            System.Single       arg1 = (System.Single)JSApi.getSingle((int)JSApi.GetType.Arg);
            UnityEngine.QueryTriggerInteraction arg2 = (UnityEngine.QueryTriggerInteraction)JSApi.getEnum((int)JSApi.GetType.Arg);
            var arrRet = ((UnityEngine.Rigidbody)vc.csObj).SweepTestAll(arg0, arg1, arg2);
            for (int i = 0; arrRet != null && i < arrRet.Length; i++)
            {
                JSMgr.datax.setObject((int)JSApi.SetType.SaveAndTempTrace, arrRet[i]);
                JSApi.moveSaveID2Arr(i);
            }
            JSApi.setArrayS((int)JSApi.SetType.Rval, (arrRet != null ? arrRet.Length : 0), true);
        }

        return(true);
    }