public CCamera EditorCamera()
        {
            global::System.IntPtr cPtr = SharpMochaPINVOKE.EditorSubsystem_EditorCamera(swigCPtr);
            CCamera ret = (cPtr == global::System.IntPtr.Zero) ? null : new CCamera(cPtr, false);

            return(ret);
        }
Example #2
0
        public GameObject RayCast3DWithTag(MochaVec3 pos, MochaVec3 dir, CCamera camera, int screen_x, int screen_y, float maxDist, string tag)
        {
            global::System.IntPtr cPtr = SharpMochaPINVOKE.PhysicEngine_RayCast3DWithTag__SWIG_0(swigCPtr, MochaVec3.getCPtr(pos), MochaVec3.getCPtr(dir), CCamera.getCPtr(camera), screen_x, screen_y, maxDist, tag);
            GameObject            ret  = (cPtr == global::System.IntPtr.Zero) ? null : new GameObject(cPtr, false);

            if (SharpMochaPINVOKE.SWIGPendingException.Pending)
            {
                throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Example #3
0
 public GameObject RayCast3DWithTag(MochaVec3 pos, MochaVec3 dir, CCamera camera, int screen_x, int screen_y, float maxDist, string tag)
 {
     global::System.IntPtr cPtr = SharpMochaPINVOKE.PhysicEngine_RayCast3DWithTag__SWIG_0(swigCPtr, MochaVec3.getCPtr(pos), MochaVec3.getCPtr(dir), CCamera.getCPtr(camera), screen_x, screen_y, maxDist, tag);
     GameObject ret = (cPtr == global::System.IntPtr.Zero) ? null : new GameObject(cPtr, false);
     if (SharpMochaPINVOKE.SWIGPendingException.Pending) throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Example #4
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(CCamera obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
Example #5
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(CCamera obj)
 {
     return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
 }