示例#1
0
 public GameObject DragObject_DoRaycast(MochaVec4 CamPos, MochaVec4 Mouse, GameObject obj, float arg3)
 {
     global::System.IntPtr cPtr = SharpMochaPINVOKE.PhysicEngine_DragObject_DoRaycast(swigCPtr, MochaVec4.getCPtr(CamPos), MochaVec4.getCPtr(Mouse), GameObject.getCPtr(obj), arg3);
     GameObject ret = (cPtr == global::System.IntPtr.Zero) ? null : new GameObject(cPtr, false);
     if (SharpMochaPINVOKE.SWIGPendingException.Pending) throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
示例#2
0
 public void ScaleByVector(MochaVec4 rhs)
 {
     SharpMochaPINVOKE.MochaVec4_ScaleByVector(swigCPtr, MochaVec4.getCPtr(rhs));
     if (SharpMochaPINVOKE.SWIGPendingException.Pending)
     {
         throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     }
 }
示例#3
0
 public void AddScaledVector(MochaVec4 Vector, float scalar)
 {
     SharpMochaPINVOKE.MochaVec4_AddScaledVector(swigCPtr, MochaVec4.getCPtr(Vector), scalar);
     if (SharpMochaPINVOKE.SWIGPendingException.Pending)
     {
         throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     }
 }
示例#4
0
 public void AddForce(MochaVec4 force)
 {
     SharpMochaPINVOKE.CPhysics_AddForce__SWIG_0(swigCPtr, MochaVec4.getCPtr(force));
     if (SharpMochaPINVOKE.SWIGPendingException.Pending)
     {
         throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     }
 }
示例#5
0
 public void SetVelocity(MochaVec4 velocity)
 {
     SharpMochaPINVOKE.CPhysics_SetVelocity__SWIG_0(swigCPtr, MochaVec4.getCPtr(velocity));
     if (SharpMochaPINVOKE.SWIGPendingException.Pending)
     {
         throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     }
 }
示例#6
0
 public void SetPosition(MochaVec4 position)
 {
     SharpMochaPINVOKE.CPhysics_SetPosition(swigCPtr, MochaVec4.getCPtr(position));
     if (SharpMochaPINVOKE.SWIGPendingException.Pending)
     {
         throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     }
 }
示例#7
0
        public float Dot(MochaVec4 rhs)
        {
            float ret = SharpMochaPINVOKE.MochaVec4_Dot(swigCPtr, MochaVec4.getCPtr(rhs));

            if (SharpMochaPINVOKE.SWIGPendingException.Pending)
            {
                throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
示例#8
0
        public MochaVec4 Cross(MochaVec4 rhs)
        {
            MochaVec4 ret = new MochaVec4(SharpMochaPINVOKE.MochaVec4_Cross(swigCPtr, MochaVec4.getCPtr(rhs)), true);

            if (SharpMochaPINVOKE.SWIGPendingException.Pending)
            {
                throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
示例#9
0
        public bool NegComp(MochaVec4 rhs)
        {
            bool ret = SharpMochaPINVOKE.MochaVec4_NegComp(swigCPtr, MochaVec4.getCPtr(rhs));

            if (SharpMochaPINVOKE.SWIGPendingException.Pending)
            {
                throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
示例#10
0
        public GameObject RayCast(MochaVec4 start, MochaVec4 vec, Color color)
        {
            global::System.IntPtr cPtr = SharpMochaPINVOKE.PhysicEngine_RayCast(swigCPtr, MochaVec4.getCPtr(start), MochaVec4.getCPtr(vec), Color.getCPtr(color));
            GameObject            ret  = (cPtr == global::System.IntPtr.Zero) ? null : new GameObject(cPtr, false);

            if (SharpMochaPINVOKE.SWIGPendingException.Pending)
            {
                throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
示例#11
0
        public GameObject DragObject_DoRaycast(MochaVec4 CamPos, MochaVec4 Mouse, GameObject obj, float arg3)
        {
            global::System.IntPtr cPtr = SharpMochaPINVOKE.PhysicEngine_DragObject_DoRaycast(swigCPtr, MochaVec4.getCPtr(CamPos), MochaVec4.getCPtr(Mouse), GameObject.getCPtr(obj), arg3);
            GameObject            ret  = (cPtr == global::System.IntPtr.Zero) ? null : new GameObject(cPtr, false);

            if (SharpMochaPINVOKE.SWIGPendingException.Pending)
            {
                throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
示例#12
0
        public MochaVec4 Normalized()
        {
            MochaVec4 ret = new MochaVec4(SharpMochaPINVOKE.MochaVec4_Normalized(swigCPtr), true);

            return(ret);
        }
示例#13
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(MochaVec4 obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
示例#14
0
 public float Dot(MochaVec4 rhs)
 {
     float ret = SharpMochaPINVOKE.MochaVec4_Dot(swigCPtr, MochaVec4.getCPtr(rhs));
     if (SharpMochaPINVOKE.SWIGPendingException.Pending) throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
示例#15
0
 public void ScaleByVector(MochaVec4 rhs)
 {
     SharpMochaPINVOKE.MochaVec4_ScaleByVector(swigCPtr, MochaVec4.getCPtr(rhs));
     if (SharpMochaPINVOKE.SWIGPendingException.Pending) throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
 }
示例#16
0
 public MochaVec4 GetVelocity()
 {
     MochaVec4 ret = new MochaVec4(SharpMochaPINVOKE.CPhysics_GetVelocity(swigCPtr), false);
     return ret;
 }
示例#17
0
 public void SetVelocity(MochaVec4 velocity)
 {
     SharpMochaPINVOKE.CPhysics_SetVelocity__SWIG_0(swigCPtr, MochaVec4.getCPtr(velocity));
     if (SharpMochaPINVOKE.SWIGPendingException.Pending) throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
 }
示例#18
0
        public MochaVec4 GetPrevPosition()
        {
            MochaVec4 ret = new MochaVec4(SharpMochaPINVOKE.CPhysics_GetPrevPosition(swigCPtr), false);

            return(ret);
        }
示例#19
0
 public MochaVec4 GetPrevPosition()
 {
     MochaVec4 ret = new MochaVec4(SharpMochaPINVOKE.CPhysics_GetPrevPosition(swigCPtr), false);
     return ret;
 }
示例#20
0
 public MochaVec4 GetGravity()
 {
     MochaVec4 ret = new MochaVec4(SharpMochaPINVOKE.PhysicEngine_GetGravity(swigCPtr), false);
     return ret;
 }
示例#21
0
        public MochaVec4 GetGravity()
        {
            MochaVec4 ret = new MochaVec4(SharpMochaPINVOKE.PhysicEngine_GetGravity(swigCPtr), false);

            return(ret);
        }
示例#22
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(MochaVec4 obj)
 {
     return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
 }
示例#23
0
 public MochaVec4 Sub(MochaVec4 rhs)
 {
     MochaVec4 ret = new MochaVec4(SharpMochaPINVOKE.MochaVec4_Sub__SWIG_1(swigCPtr, MochaVec4.getCPtr(rhs)), true);
     if (SharpMochaPINVOKE.SWIGPendingException.Pending) throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
示例#24
0
 public MochaVec4 Sub()
 {
     MochaVec4 ret = new MochaVec4(SharpMochaPINVOKE.MochaVec4_Sub__SWIG_0(swigCPtr), true);
     return ret;
 }
示例#25
0
        public MochaVec4 Negate()
        {
            MochaVec4 ret = new MochaVec4(SharpMochaPINVOKE.MochaVec4_Negate(swigCPtr), false);

            return(ret);
        }
示例#26
0
        public MochaVec4 Div(float rhs)
        {
            MochaVec4 ret = new MochaVec4(SharpMochaPINVOKE.MochaVec4_Div__SWIG_0(swigCPtr, rhs), true);

            return(ret);
        }
示例#27
0
 public void AddScaledVector(MochaVec4 Vector, float scalar)
 {
     SharpMochaPINVOKE.MochaVec4_AddScaledVector(swigCPtr, MochaVec4.getCPtr(Vector), scalar);
     if (SharpMochaPINVOKE.SWIGPendingException.Pending) throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
 }
示例#28
0
 public bool NegComp(MochaVec4 rhs)
 {
     bool ret = SharpMochaPINVOKE.MochaVec4_NegComp(swigCPtr, MochaVec4.getCPtr(rhs));
     if (SharpMochaPINVOKE.SWIGPendingException.Pending) throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
示例#29
0
        public MochaVec4 GetForce()
        {
            MochaVec4 ret = new MochaVec4(SharpMochaPINVOKE.CPhysics_GetForce(swigCPtr), false);

            return(ret);
        }
示例#30
0
 public MochaVec4 Negate()
 {
     MochaVec4 ret = new MochaVec4(SharpMochaPINVOKE.MochaVec4_Negate(swigCPtr), false);
     return ret;
 }
示例#31
0
 public void SetPosition(MochaVec4 position)
 {
     SharpMochaPINVOKE.CPhysics_SetPosition(swigCPtr, MochaVec4.getCPtr(position));
     if (SharpMochaPINVOKE.SWIGPendingException.Pending) throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
 }
示例#32
0
 public MochaVec4 Mul(float rhs)
 {
     MochaVec4 ret = new MochaVec4(SharpMochaPINVOKE.MochaVec4_Mul__SWIG_0(swigCPtr, rhs), true);
     return ret;
 }
示例#33
0
        public MochaVec4 Sub()
        {
            MochaVec4 ret = new MochaVec4(SharpMochaPINVOKE.MochaVec4_Sub__SWIG_0(swigCPtr), true);

            return(ret);
        }
示例#34
0
 public MochaVec4 Normalized()
 {
     MochaVec4 ret = new MochaVec4(SharpMochaPINVOKE.MochaVec4_Normalized(swigCPtr), true);
     return ret;
 }
示例#35
0
 public GameObject RayCast(MochaVec4 start, MochaVec4 vec, Color color)
 {
     global::System.IntPtr cPtr = SharpMochaPINVOKE.PhysicEngine_RayCast(swigCPtr, MochaVec4.getCPtr(start), MochaVec4.getCPtr(vec), Color.getCPtr(color));
     GameObject ret = (cPtr == global::System.IntPtr.Zero) ? null : new GameObject(cPtr, false);
     if (SharpMochaPINVOKE.SWIGPendingException.Pending) throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
示例#36
0
 public void AddForce(MochaVec4 force)
 {
     SharpMochaPINVOKE.CPhysics_AddForce__SWIG_0(swigCPtr, MochaVec4.getCPtr(force));
     if (SharpMochaPINVOKE.SWIGPendingException.Pending) throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
 }