static bool Rigidbody_AddTorque__Vector3__ForceMode(JSVCall vc, int argc)
    {
        int len = argc;

        if (len == 2)
        {
            UnityEngine.Vector3   arg0 = (UnityEngine.Vector3)JSApi.getVector3S((int)JSApi.GetType.Arg);
            UnityEngine.ForceMode arg1 = (UnityEngine.ForceMode)JSApi.getEnum((int)JSApi.GetType.Arg);
            ((UnityEngine.Rigidbody)vc.csObj).AddTorque(arg0, arg1);
        }

        return(true);
    }
Beispiel #2
0
// methods

    static bool InteractiveCloth_AddForceAtPosition__Vector3__Vector3__Single__ForceMode(JSVCall vc, int argc)
    {
        int len = argc;

        if (len == 4)
        {
            UnityEngine.Vector3   arg0 = (UnityEngine.Vector3)JSApi.getVector3S((int)JSApi.GetType.Arg);
            UnityEngine.Vector3   arg1 = (UnityEngine.Vector3)JSApi.getVector3S((int)JSApi.GetType.Arg);
            System.Single         arg2 = (System.Single)JSApi.getSingle((int)JSApi.GetType.Arg);
            UnityEngine.ForceMode arg3 = (UnityEngine.ForceMode)JSApi.getEnum((int)JSApi.GetType.Arg);
            ((UnityEngine.InteractiveCloth)vc.csObj).AddForceAtPosition(arg0, arg1, arg2, arg3);
        }

        return(true);
    }
    static bool Rigidbody_AddTorque__Single__Single__Single__ForceMode(JSVCall vc, int argc)
    {
        int len = argc;

        if (len == 4)
        {
            System.Single         arg0 = (System.Single)JSApi.getSingle((int)JSApi.GetType.Arg);
            System.Single         arg1 = (System.Single)JSApi.getSingle((int)JSApi.GetType.Arg);
            System.Single         arg2 = (System.Single)JSApi.getSingle((int)JSApi.GetType.Arg);
            UnityEngine.ForceMode arg3 = (UnityEngine.ForceMode)JSApi.getEnum((int)JSApi.GetType.Arg);
            ((UnityEngine.Rigidbody)vc.csObj).AddTorque(arg0, arg1, arg2, arg3);
        }

        return(true);
    }
// methods

    static bool Rigidbody_AddExplosionForce__Single__Vector3__Single__Single__ForceMode(JSVCall vc, int argc)
    {
        int len = argc;

        if (len == 5)
        {
            System.Single         arg0 = (System.Single)JSApi.getSingle((int)JSApi.GetType.Arg);
            UnityEngine.Vector3   arg1 = (UnityEngine.Vector3)JSApi.getVector3S((int)JSApi.GetType.Arg);
            System.Single         arg2 = (System.Single)JSApi.getSingle((int)JSApi.GetType.Arg);
            System.Single         arg3 = (System.Single)JSApi.getSingle((int)JSApi.GetType.Arg);
            UnityEngine.ForceMode arg4 = (UnityEngine.ForceMode)JSApi.getEnum((int)JSApi.GetType.Arg);
            ((UnityEngine.Rigidbody)vc.csObj).AddExplosionForce(arg0, arg1, arg2, arg3, arg4);
        }

        return(true);
    }