Exemplo n.º 1
0
        public bool AnyGreater(MochaVec3 rhs)
        {
            bool ret = SharpMochaPINVOKE.MochaVec3_AnyGreater(swigCPtr, MochaVec3.getCPtr(rhs));

            return(ret);
        }
Exemplo n.º 2
0
        public MochaVec3 Lerp(MochaVec3 end, float tValue)
        {
            MochaVec3 ret = new MochaVec3(SharpMochaPINVOKE.MochaVec3_Lerp(swigCPtr, MochaVec3.getCPtr(end), tValue), true);

            return(ret);
        }
Exemplo n.º 3
0
        public bool AllLess(MochaVec3 rhs)
        {
            bool ret = SharpMochaPINVOKE.MochaVec3_AllLess(swigCPtr, MochaVec3.getCPtr(rhs));

            return(ret);
        }
Exemplo n.º 4
0
        public RigidBodyComponent ApplyImmediateImpulse(MochaVec3 impulse, MochaVec3 at)
        {
            RigidBodyComponent ret = new RigidBodyComponent(SharpMochaPINVOKE.RigidBodyComponent_ApplyImmediateImpulse(swigCPtr, MochaVec3.getCPtr(impulse), MochaVec3.getCPtr(at)), false);

            if (SharpMochaPINVOKE.SWIGPendingException.Pending)
            {
                throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemplo n.º 5
0
        public MochaVec3 Max(MochaVec3 rhs)
        {
            MochaVec3 ret = new MochaVec3(SharpMochaPINVOKE.MochaVec3_Max(swigCPtr, MochaVec3.getCPtr(rhs)), true);

            return(ret);
        }
Exemplo n.º 6
0
 public void ApplyImmediateImpulse(MochaVec3 impulse, MochaVec3 at)
 {
     SharpMochaPINVOKE.RigidBody_ApplyImmediateImpulse(swigCPtr, MochaVec3.getCPtr(impulse), MochaVec3.getCPtr(at));
     if (SharpMochaPINVOKE.SWIGPendingException.Pending)
     {
         throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemplo n.º 7
0
 public void LookAt(MochaVec3 point, MochaVec3 worldUp)
 {
     SharpMochaPINVOKE.CTransform_LookAt__SWIG_0(swigCPtr, MochaVec3.getCPtr(point), MochaVec3.getCPtr(worldUp));
     if (SharpMochaPINVOKE.SWIGPendingException.Pending)
     {
         throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemplo n.º 8
0
 public void PlayIndependentEventStatic3D(string eventVenteName, MochaVec3 pos, bool loop)
 {
     SharpMochaPINVOKE.CSound_PlayIndependentEventStatic3D(swigCPtr, eventVenteName, MochaVec3.getCPtr(pos), loop);
     if (SharpMochaPINVOKE.SWIGPendingException.Pending)
     {
         throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemplo n.º 9
0
 public MochaVec3(MochaVec3 Vector3) : this(SharpMochaPINVOKE.new_MochaVec3__SWIG_6(MochaVec3.getCPtr(Vector3)), true)
 {
     if (SharpMochaPINVOKE.SWIGPendingException.Pending)
     {
         throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemplo n.º 10
0
        public RayCastResult RayCast3DWithTag_Output(MochaVec3 pos, MochaVec3 dir, float maxDistance, SWIGTYPE_p_std__string tag)
        {
            RayCastResult ret = new RayCastResult(SharpMochaPINVOKE.PhysicEngine_RayCast3DWithTag_Output(swigCPtr, MochaVec3.getCPtr(pos), MochaVec3.getCPtr(dir), maxDistance, SWIGTYPE_p_std__string.getCPtr(tag)), true);

            if (SharpMochaPINVOKE.SWIGPendingException.Pending)
            {
                throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemplo n.º 11
0
        public GameObject RayCast3D(MochaVec3 pos, MochaVec3 dir, float maxDistance)
        {
            global::System.IntPtr cPtr = SharpMochaPINVOKE.PhysicEngine_RayCast3D__SWIG_0(swigCPtr, MochaVec3.getCPtr(pos), MochaVec3.getCPtr(dir), maxDistance);
            GameObject            ret  = (cPtr == global::System.IntPtr.Zero) ? null : new GameObject(cPtr, false);

            if (SharpMochaPINVOKE.SWIGPendingException.Pending)
            {
                throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemplo n.º 12
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);
        }
Exemplo n.º 13
0
        public CBoxColliderComponent SetHalfExtents(MochaVec3 halfExtents)
        {
            CBoxColliderComponent ret = new CBoxColliderComponent(SharpMochaPINVOKE.CBoxColliderComponent_SetHalfExtents(swigCPtr, MochaVec3.getCPtr(halfExtents)), false);

            if (SharpMochaPINVOKE.SWIGPendingException.Pending)
            {
                throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemplo n.º 14
0
        public RigidBodyComponent SetPosition(MochaVec3 pos)
        {
            RigidBodyComponent ret = new RigidBodyComponent(SharpMochaPINVOKE.RigidBodyComponent_SetPosition(swigCPtr, MochaVec3.getCPtr(pos)), false);

            if (SharpMochaPINVOKE.SWIGPendingException.Pending)
            {
                throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemplo n.º 15
0
 public void DrawBoxPerma(MochaVec3 pos, MochaVec3 halflengths)
 {
     SharpMochaPINVOKE.Renderer_DrawBoxPerma__SWIG_1(swigCPtr, MochaVec3.getCPtr(pos), MochaVec3.getCPtr(halflengths));
     if (SharpMochaPINVOKE.SWIGPendingException.Pending)
     {
         throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemplo n.º 16
0
        public MochaVec3 Project(MochaVec3 axis)
        {
            MochaVec3 ret = new MochaVec3(SharpMochaPINVOKE.MochaVec3_Project(swigCPtr, MochaVec3.getCPtr(axis)), true);

            if (SharpMochaPINVOKE.SWIGPendingException.Pending)
            {
                throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemplo n.º 17
0
 public void DrawLinePerma(MochaVec3 begin, MochaVec3 end, Color col)
 {
     SharpMochaPINVOKE.Renderer_DrawLinePerma(swigCPtr, MochaVec3.getCPtr(begin), MochaVec3.getCPtr(end), Color.getCPtr(col));
     if (SharpMochaPINVOKE.SWIGPendingException.Pending)
     {
         throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemplo n.º 18
0
        public MochaVec3 Cross(MochaVec3 rhs)
        {
            MochaVec3 ret = new MochaVec3(SharpMochaPINVOKE.MochaVec3_Cross(swigCPtr, MochaVec3.getCPtr(rhs)), true);

            if (SharpMochaPINVOKE.SWIGPendingException.Pending)
            {
                throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemplo n.º 19
0
 public void ApplyAngularMasslessForce(MochaVec3 force, MochaVec3 at)
 {
     SharpMochaPINVOKE.RigidBody_ApplyAngularMasslessForce(swigCPtr, MochaVec3.getCPtr(force), MochaVec3.getCPtr(at));
     if (SharpMochaPINVOKE.SWIGPendingException.Pending)
     {
         throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemplo n.º 20
0
        public float Distance(MochaVec3 rhs)
        {
            float ret = SharpMochaPINVOKE.MochaVec3_Distance(swigCPtr, MochaVec3.getCPtr(rhs));

            return(ret);
        }
Exemplo n.º 21
0
 public void LookAt(MochaVec3 point)
 {
     SharpMochaPINVOKE.CTransform_LookAt__SWIG_1(swigCPtr, MochaVec3.getCPtr(point));
 }
Exemplo n.º 22
0
        public RigidBodyComponent ApplyAngularMasslessForce(MochaVec3 force, MochaVec3 at)
        {
            RigidBodyComponent ret = new RigidBodyComponent(SharpMochaPINVOKE.RigidBodyComponent_ApplyAngularMasslessForce(swigCPtr, MochaVec3.getCPtr(force), MochaVec3.getCPtr(at)), false);

            if (SharpMochaPINVOKE.SWIGPendingException.Pending)
            {
                throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }