예제 #1
0
        public bool AnyGreater(MochaVec3 rhs)
        {
            bool ret = SharpMochaPINVOKE.MochaVec3_AnyGreater(swigCPtr, MochaVec3.getCPtr(rhs));

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

            return(ret);
        }
예제 #3
0
        public bool AllLess(MochaVec3 rhs)
        {
            bool ret = SharpMochaPINVOKE.MochaVec3_AllLess(swigCPtr, MochaVec3.getCPtr(rhs));

            return(ret);
        }
예제 #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);
        }
예제 #5
0
        public MochaVec3 Max(MochaVec3 rhs)
        {
            MochaVec3 ret = new MochaVec3(SharpMochaPINVOKE.MochaVec3_Max(swigCPtr, MochaVec3.getCPtr(rhs)), true);

            return(ret);
        }
예제 #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();
     }
 }
예제 #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();
     }
 }
예제 #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();
     }
 }
예제 #9
0
 public MochaVec3(MochaVec3 Vector3) : this(SharpMochaPINVOKE.new_MochaVec3__SWIG_6(MochaVec3.getCPtr(Vector3)), true)
 {
     if (SharpMochaPINVOKE.SWIGPendingException.Pending)
     {
         throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     }
 }
예제 #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);
        }
예제 #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);
        }
예제 #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);
        }
예제 #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);
        }
예제 #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);
        }
예제 #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();
     }
 }
예제 #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);
        }
예제 #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();
     }
 }
예제 #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);
        }
예제 #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();
     }
 }
예제 #20
0
        public float Distance(MochaVec3 rhs)
        {
            float ret = SharpMochaPINVOKE.MochaVec3_Distance(swigCPtr, MochaVec3.getCPtr(rhs));

            return(ret);
        }
예제 #21
0
 public void LookAt(MochaVec3 point)
 {
     SharpMochaPINVOKE.CTransform_LookAt__SWIG_1(swigCPtr, MochaVec3.getCPtr(point));
 }
예제 #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);
        }