Example #1
0
 public MochaVec3(MochaVec3 Vector3) : this(SharpMochaPINVOKE.new_MochaVec3__SWIG_6(MochaVec3.getCPtr(Vector3)), true)
 {
     if (SharpMochaPINVOKE.SWIGPendingException.Pending)
     {
         throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #2
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();
     }
 }
Example #3
0
 public void Rotate(MochaVec3 vec, CTransform.TransformSpace space)
 {
     SharpMochaPINVOKE.CTransform_Rotate__SWIG_2(swigCPtr, MochaVec3.getCPtr(vec), (int)space);
     if (SharpMochaPINVOKE.SWIGPendingException.Pending)
     {
         throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #4
0
 public void PlayUniqueEvent(uint eventId, MochaVec3 pos, bool loop)
 {
     SharpMochaPINVOKE.CSound_PlayUniqueEvent__SWIG_1(swigCPtr, eventId, MochaVec3.getCPtr(pos), loop);
     if (SharpMochaPINVOKE.SWIGPendingException.Pending)
     {
         throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #5
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();
     }
 }
Example #6
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();
     }
 }
Example #7
0
 public void Translate(MochaVec3 v)
 {
     SharpMochaPINVOKE.CTransform_Translate__SWIG_1(swigCPtr, MochaVec3.getCPtr(v));
     if (SharpMochaPINVOKE.SWIGPendingException.Pending)
     {
         throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #8
0
 public void ScaleByVector(MochaVec3 rhs)
 {
     SharpMochaPINVOKE.MochaVec3_ScaleByVector(swigCPtr, MochaVec3.getCPtr(rhs));
     if (SharpMochaPINVOKE.SWIGPendingException.Pending)
     {
         throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 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();
     }
 }
Example #10
0
 public void SetScale(MochaVec3 scale)
 {
     SharpMochaPINVOKE.CTransform_SetScale__SWIG_1(swigCPtr, MochaVec3.getCPtr(scale));
     if (SharpMochaPINVOKE.SWIGPendingException.Pending)
     {
         throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #11
0
 public void SetPosition(MochaVec3 position)
 {
     SharpMochaPINVOKE.RigidBody_SetPosition(swigCPtr, MochaVec3.getCPtr(position));
     if (SharpMochaPINVOKE.SWIGPendingException.Pending)
     {
         throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #12
0
 public void SetPosition(MochaVec3 pos, CTransform.TransformSpace space)
 {
     SharpMochaPINVOKE.CTransform_SetPosition__SWIG_0(swigCPtr, MochaVec3.getCPtr(pos), (int)space);
     if (SharpMochaPINVOKE.SWIGPendingException.Pending)
     {
         throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #13
0
 public void RotateAround(MochaVec3 vec, float angle)
 {
     SharpMochaPINVOKE.CTransform_RotateAround__SWIG_3(swigCPtr, MochaVec3.getCPtr(vec), angle);
     if (SharpMochaPINVOKE.SWIGPendingException.Pending)
     {
         throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #14
0
 public void ApplyLinearForce(MochaVec3 force)
 {
     SharpMochaPINVOKE.RigidBody_ApplyLinearForce(swigCPtr, MochaVec3.getCPtr(force));
     if (SharpMochaPINVOKE.SWIGPendingException.Pending)
     {
         throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #15
0
 public void SetPosition(MochaVec3 pos)
 {
     SharpMochaPINVOKE.CTransform_SetPosition__SWIG_1(swigCPtr, MochaVec3.getCPtr(pos));
     if (SharpMochaPINVOKE.SWIGPendingException.Pending)
     {
         throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #16
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();
     }
 }
Example #17
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();
     }
 }
Example #18
0
 public void SetAngularVelocity(MochaVec3 velocity)
 {
     SharpMochaPINVOKE.RigidBody_SetAngularVelocity(swigCPtr, MochaVec3.getCPtr(velocity));
     if (SharpMochaPINVOKE.SWIGPendingException.Pending)
     {
         throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #19
0
 public void SetRotation(MochaVec3 rot, float angle)
 {
     SharpMochaPINVOKE.CTransform_SetRotation__SWIG_1(swigCPtr, MochaVec3.getCPtr(rot), angle);
     if (SharpMochaPINVOKE.SWIGPendingException.Pending)
     {
         throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #20
0
 public void AddScaledVector(MochaVec3 Vector, float scalar)
 {
     SharpMochaPINVOKE.MochaVec3_AddScaledVector(swigCPtr, MochaVec3.getCPtr(Vector), scalar);
     if (SharpMochaPINVOKE.SWIGPendingException.Pending)
     {
         throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #21
0
        public bool IsPointWithin(MochaVec3 point)
        {
            bool ret = SharpMochaPINVOKE.IZone_IsPointWithin(swigCPtr, MochaVec3.getCPtr(point));

            if (SharpMochaPINVOKE.SWIGPendingException.Pending)
            {
                throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Example #22
0
        public bool NegComp(MochaVec3 rhs)
        {
            bool ret = SharpMochaPINVOKE.MochaVec3_NegComp(swigCPtr, MochaVec3.getCPtr(rhs));

            if (SharpMochaPINVOKE.SWIGPendingException.Pending)
            {
                throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Example #23
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);
        }
Example #24
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);
        }
Example #25
0
        public float Dot(MochaVec3 rhs)
        {
            float ret = SharpMochaPINVOKE.MochaVec3_Dot(swigCPtr, MochaVec3.getCPtr(rhs));

            if (SharpMochaPINVOKE.SWIGPendingException.Pending)
            {
                throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Example #26
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);
        }
Example #27
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);
        }
Example #28
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);
        }
Example #29
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);
        }
Example #30
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);
        }
Example #31
0
 public bool IsPointWithin(MochaVec3 point)
 {
     bool ret = SharpMochaPINVOKE.IZone_IsPointWithin(swigCPtr, MochaVec3.getCPtr(point));
     if (SharpMochaPINVOKE.SWIGPendingException.Pending) throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Example #32
0
 public MochaVec3(MochaVec3 Vector3)
     : this(SharpMochaPINVOKE.new_MochaVec3__SWIG_6(MochaVec3.getCPtr(Vector3)), true)
 {
     if (SharpMochaPINVOKE.SWIGPendingException.Pending) throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
 }
Example #33
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(MochaVec3 obj)
 {
     return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
 }
Example #34
0
 public MochaVec3 Sub(MochaVec3 rhs)
 {
     MochaVec3 ret = new MochaVec3(SharpMochaPINVOKE.MochaVec3_Sub__SWIG_1(swigCPtr, MochaVec3.getCPtr(rhs)), true);
     if (SharpMochaPINVOKE.SWIGPendingException.Pending) throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Example #35
0
 public void SetPosition(MochaVec3 pos)
 {
     SharpMochaPINVOKE.CTransform_SetPosition__SWIG_1(swigCPtr, MochaVec3.getCPtr(pos));
     if (SharpMochaPINVOKE.SWIGPendingException.Pending) throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
 }
Example #36
0
 public MochaVec3 Normalized()
 {
     MochaVec3 ret = new MochaVec3(SharpMochaPINVOKE.MochaVec3_Normalized(swigCPtr), true);
     return ret;
 }
Example #37
0
 public void SetScale(MochaVec3 scale)
 {
     SharpMochaPINVOKE.CTransform_SetScale__SWIG_1(swigCPtr, MochaVec3.getCPtr(scale));
     if (SharpMochaPINVOKE.SWIGPendingException.Pending) throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
 }
Example #38
0
 public MochaVec3 Negate()
 {
     MochaVec3 ret = new MochaVec3(SharpMochaPINVOKE.MochaVec3_Negate(swigCPtr), false);
     return ret;
 }
Example #39
0
 public bool NegComp(MochaVec3 rhs)
 {
     bool ret = SharpMochaPINVOKE.MochaVec3_NegComp(swigCPtr, MochaVec3.getCPtr(rhs));
     if (SharpMochaPINVOKE.SWIGPendingException.Pending) throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Example #40
0
 public MochaVec3 Mul(float rhs)
 {
     MochaVec3 ret = new MochaVec3(SharpMochaPINVOKE.MochaVec3_Mul__SWIG_0(swigCPtr, rhs), true);
     return ret;
 }
Example #41
0
 public MochaVec3 Min(MochaVec3 rhs)
 {
     MochaVec3 ret = new MochaVec3(SharpMochaPINVOKE.MochaVec3_Min(swigCPtr, MochaVec3.getCPtr(rhs)), true);
     return ret;
 }
Example #42
0
 public MochaVec3 Lerp(MochaVec3 end, float tValue)
 {
     MochaVec3 ret = new MochaVec3(SharpMochaPINVOKE.MochaVec3_Lerp(swigCPtr, MochaVec3.getCPtr(end), tValue), true);
     return ret;
 }
Example #43
0
 public MochaVec3 GetEyePos(uint index)
 {
     MochaVec3 ret = new MochaVec3(SharpMochaPINVOKE.OculusVR_GetEyePos(swigCPtr, index), true);
     return ret;
 }
Example #44
0
 public MochaVec3 Reflect(MochaVec3 reflectionAxis)
 {
     MochaVec3 ret = new MochaVec3(SharpMochaPINVOKE.MochaVec3_Reflect(swigCPtr, MochaVec3.getCPtr(reflectionAxis)), true);
     if (SharpMochaPINVOKE.SWIGPendingException.Pending) throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Example #45
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;
 }
Example #46
0
 public void ScaleByVector(MochaVec3 rhs)
 {
     SharpMochaPINVOKE.MochaVec3_ScaleByVector(swigCPtr, MochaVec3.getCPtr(rhs));
     if (SharpMochaPINVOKE.SWIGPendingException.Pending) throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
 }
Example #47
0
 public void SetRotation(MochaVec3 rot, float angle)
 {
     SharpMochaPINVOKE.CTransform_SetRotation__SWIG_1(swigCPtr, MochaVec3.getCPtr(rot), angle);
     if (SharpMochaPINVOKE.SWIGPendingException.Pending) throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
 }
Example #48
0
 public MochaVec3 Sub()
 {
     MochaVec3 ret = new MochaVec3(SharpMochaPINVOKE.MochaVec3_Sub__SWIG_0(swigCPtr), true);
     return ret;
 }
Example #49
0
 public void Translate(MochaVec3 v)
 {
     SharpMochaPINVOKE.CTransform_Translate__SWIG_1(swigCPtr, MochaVec3.getCPtr(v));
     if (SharpMochaPINVOKE.SWIGPendingException.Pending) throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
 }
Example #50
0
 public GameObject RayCast3DWithTag(MochaVec3 pos, MochaVec3 dir, float maxDistance, string tag)
 {
     global::System.IntPtr cPtr = SharpMochaPINVOKE.PhysicEngine_RayCast3DWithTag__SWIG_1(swigCPtr, MochaVec3.getCPtr(pos), MochaVec3.getCPtr(dir), maxDistance, tag);
     GameObject ret = (cPtr == global::System.IntPtr.Zero) ? null : new GameObject(cPtr, false);
     if (SharpMochaPINVOKE.SWIGPendingException.Pending) throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Example #51
0
 public MochaVec3 GetHalfExtents()
 {
     MochaVec3 ret = new MochaVec3(SharpMochaPINVOKE.CBoxColliderComponent_GetHalfExtents(swigCPtr), false);
     return ret;
 }
Example #52
0
 public void AddScaledVector(MochaVec3 Vector, float scalar)
 {
     SharpMochaPINVOKE.MochaVec3_AddScaledVector(swigCPtr, MochaVec3.getCPtr(Vector), scalar);
     if (SharpMochaPINVOKE.SWIGPendingException.Pending) throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
 }
Example #53
0
 public MochaVec3 GetCenter()
 {
     MochaVec3 ret = new MochaVec3(SharpMochaPINVOKE.CZone_GetCenter(swigCPtr), false);
     return ret;
 }
Example #54
0
 public bool AllGreater(MochaVec3 rhs)
 {
     bool ret = SharpMochaPINVOKE.MochaVec3_AllGreater(swigCPtr, MochaVec3.getCPtr(rhs));
     return ret;
 }
Example #55
0
 public MochaVec3 GetDiagonalCornerZero()
 {
     MochaVec3 ret = new MochaVec3(SharpMochaPINVOKE.IZone_GetDiagonalCornerZero(swigCPtr), true);
     return ret;
 }
Example #56
0
 public bool AnyLess(MochaVec3 rhs)
 {
     bool ret = SharpMochaPINVOKE.MochaVec3_AnyLess(swigCPtr, MochaVec3.getCPtr(rhs));
     return ret;
 }
Example #57
0
 public GameObject RayCast3D(MochaVec3 pos, MochaVec3 dir, CCamera camera, int screen_x, int screen_y, float maxDist)
 {
     global::System.IntPtr cPtr = SharpMochaPINVOKE.PhysicEngine_RayCast3D__SWIG_1(swigCPtr, MochaVec3.getCPtr(pos), MochaVec3.getCPtr(dir), CCamera.getCPtr(camera), screen_x, screen_y, maxDist);
     GameObject ret = (cPtr == global::System.IntPtr.Zero) ? null : new GameObject(cPtr, false);
     if (SharpMochaPINVOKE.SWIGPendingException.Pending) throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Example #58
0
 public float Distance(MochaVec3 rhs)
 {
     float ret = SharpMochaPINVOKE.MochaVec3_Distance(swigCPtr, MochaVec3.getCPtr(rhs));
     return ret;
 }
Example #59
0
 public RayCastResult RayCast3D_Output(MochaVec3 pos, MochaVec3 dir, float maxDistance)
 {
     RayCastResult ret = new RayCastResult(SharpMochaPINVOKE.PhysicEngine_RayCast3D_Output(swigCPtr, MochaVec3.getCPtr(pos), MochaVec3.getCPtr(dir), maxDistance), true);
     if (SharpMochaPINVOKE.SWIGPendingException.Pending) throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Example #60
0
 public float Dot(MochaVec3 rhs)
 {
     float ret = SharpMochaPINVOKE.MochaVec3_Dot(swigCPtr, MochaVec3.getCPtr(rhs));
     if (SharpMochaPINVOKE.SWIGPendingException.Pending) throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }