Beispiel #1
0
 public void SetPosition(MochaVec4 position)
 {
     SharpMochaPINVOKE.CPhysics_SetPosition(swigCPtr, MochaVec4.getCPtr(position));
     if (SharpMochaPINVOKE.SWIGPendingException.Pending)
     {
         throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Beispiel #2
0
 public void AddForce(MochaVec4 force)
 {
     SharpMochaPINVOKE.CPhysics_AddForce__SWIG_0(swigCPtr, MochaVec4.getCPtr(force));
     if (SharpMochaPINVOKE.SWIGPendingException.Pending)
     {
         throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Beispiel #3
0
 public void SetVelocity(MochaVec4 velocity)
 {
     SharpMochaPINVOKE.CPhysics_SetVelocity__SWIG_0(swigCPtr, MochaVec4.getCPtr(velocity));
     if (SharpMochaPINVOKE.SWIGPendingException.Pending)
     {
         throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Beispiel #4
0
 public void AddScaledVector(MochaVec4 Vector, float scalar)
 {
     SharpMochaPINVOKE.MochaVec4_AddScaledVector(swigCPtr, MochaVec4.getCPtr(Vector), scalar);
     if (SharpMochaPINVOKE.SWIGPendingException.Pending)
     {
         throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Beispiel #5
0
 public void ScaleByVector(MochaVec4 rhs)
 {
     SharpMochaPINVOKE.MochaVec4_ScaleByVector(swigCPtr, MochaVec4.getCPtr(rhs));
     if (SharpMochaPINVOKE.SWIGPendingException.Pending)
     {
         throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Beispiel #6
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);
        }
Beispiel #7
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);
        }
Beispiel #8
0
        public MochaVec4 Add(MochaVec4 rhs)
        {
            MochaVec4 ret = new MochaVec4(SharpMochaPINVOKE.MochaVec4_Add(swigCPtr, MochaVec4.getCPtr(rhs)), true);

            if (SharpMochaPINVOKE.SWIGPendingException.Pending)
            {
                throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Beispiel #9
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);
        }
Beispiel #10
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);
        }