Exemplo n.º 1
0
 public static int get_localRotation(System.IntPtr L)
 {
     if (true && LuaAPI.IsObject(L, 1))
     {
         UnityEngine.Transform  arg0 = (UnityEngine.Transform)LuaCallback.ToObject(L, 1);
         UnityEngine.Quaternion res  = arg0.localRotation;
         LuaCallback.PushVector(L, res);
         return(1);
     }
     return(0);
 }
Exemplo n.º 2
0
 public static int get_lossyScale(System.IntPtr L)
 {
     if (true && LuaAPI.IsObject(L, 1))
     {
         UnityEngine.Transform arg0 = (UnityEngine.Transform)LuaCallback.ToObject(L, 1);
         UnityEngine.Vector3   res  = arg0.lossyScale;
         LuaCallback.PushVector(L, res);
         return(1);
     }
     return(0);
 }
Exemplo n.º 3
0
    public static int InverseTransformPoint(System.IntPtr L)
    {
        int nargs = LuaAPI.GetTop(L);

        if (nargs == 2 && LuaAPI.IsObject(L, 1) && LuaAPI.IsVector3(L, 2))
        {
            UnityEngine.Transform arg0 = (UnityEngine.Transform)LuaCallback.ToObject(L, 1);
            UnityEngine.Vector3   arg1 = (UnityEngine.Vector3)LuaCallback.ToVector3(L, 2);
            UnityEngine.Vector3   res  = arg0.InverseTransformPoint(arg1);
            LuaCallback.PushVector(L, res);
            return(1);
        }
        if (nargs == 4 && LuaAPI.IsObject(L, 1) && LuaAPI.IsNumber(L, 2) && LuaAPI.IsNumber(L, 3) && LuaAPI.IsNumber(L, 4))
        {
            UnityEngine.Transform arg0 = (UnityEngine.Transform)LuaCallback.ToObject(L, 1);
            System.Single         arg1 = (System.Single)LuaCallback.ToNumber(L, 2);
            System.Single         arg2 = (System.Single)LuaCallback.ToNumber(L, 3);
            System.Single         arg3 = (System.Single)LuaCallback.ToNumber(L, 4);
            UnityEngine.Vector3   res  = arg0.InverseTransformPoint(arg1, arg2, arg3);
            LuaCallback.PushVector(L, res);
            return(1);
        }
        return(0);
    }