Ejemplo n.º 1
0
 public MochaVec3(MochaVec3 Vector3) : this(SharpMochaPINVOKE.new_MochaVec3__SWIG_6(MochaVec3.getCPtr(Vector3)), true)
 {
     if (SharpMochaPINVOKE.SWIGPendingException.Pending)
     {
         throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 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();
     }
 }
Ejemplo n.º 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();
     }
 }
Ejemplo n.º 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();
     }
 }
Ejemplo n.º 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();
     }
 }
Ejemplo n.º 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();
     }
 }
Ejemplo n.º 7
0
 public void Translate(MochaVec3 v)
 {
     SharpMochaPINVOKE.CTransform_Translate__SWIG_1(swigCPtr, MochaVec3.getCPtr(v));
     if (SharpMochaPINVOKE.SWIGPendingException.Pending)
     {
         throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 8
0
 public void ScaleByVector(MochaVec3 rhs)
 {
     SharpMochaPINVOKE.MochaVec3_ScaleByVector(swigCPtr, MochaVec3.getCPtr(rhs));
     if (SharpMochaPINVOKE.SWIGPendingException.Pending)
     {
         throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 9
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();
     }
 }
Ejemplo n.º 10
0
 public void SetScale(MochaVec3 scale)
 {
     SharpMochaPINVOKE.CTransform_SetScale__SWIG_1(swigCPtr, MochaVec3.getCPtr(scale));
     if (SharpMochaPINVOKE.SWIGPendingException.Pending)
     {
         throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 11
0
 public void SetPosition(MochaVec3 position)
 {
     SharpMochaPINVOKE.RigidBody_SetPosition(swigCPtr, MochaVec3.getCPtr(position));
     if (SharpMochaPINVOKE.SWIGPendingException.Pending)
     {
         throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 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();
     }
 }
Ejemplo n.º 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();
     }
 }
Ejemplo n.º 14
0
 public void ApplyLinearForce(MochaVec3 force)
 {
     SharpMochaPINVOKE.RigidBody_ApplyLinearForce(swigCPtr, MochaVec3.getCPtr(force));
     if (SharpMochaPINVOKE.SWIGPendingException.Pending)
     {
         throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 15
0
 public void SetPosition(MochaVec3 pos)
 {
     SharpMochaPINVOKE.CTransform_SetPosition__SWIG_1(swigCPtr, MochaVec3.getCPtr(pos));
     if (SharpMochaPINVOKE.SWIGPendingException.Pending)
     {
         throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 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();
     }
 }
Ejemplo n.º 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();
     }
 }
Ejemplo n.º 18
0
 public void SetAngularVelocity(MochaVec3 velocity)
 {
     SharpMochaPINVOKE.RigidBody_SetAngularVelocity(swigCPtr, MochaVec3.getCPtr(velocity));
     if (SharpMochaPINVOKE.SWIGPendingException.Pending)
     {
         throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 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();
     }
 }
Ejemplo n.º 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();
     }
 }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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;
 }
Ejemplo n.º 32
0
 public MochaVec3(MochaVec3 Vector3)
     : this(SharpMochaPINVOKE.new_MochaVec3__SWIG_6(MochaVec3.getCPtr(Vector3)), true)
 {
     if (SharpMochaPINVOKE.SWIGPendingException.Pending) throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 35
0
 public void SetPosition(MochaVec3 pos)
 {
     SharpMochaPINVOKE.CTransform_SetPosition__SWIG_1(swigCPtr, MochaVec3.getCPtr(pos));
     if (SharpMochaPINVOKE.SWIGPendingException.Pending) throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
 }
Ejemplo n.º 36
0
 public MochaVec3 Normalized()
 {
     MochaVec3 ret = new MochaVec3(SharpMochaPINVOKE.MochaVec3_Normalized(swigCPtr), true);
     return ret;
 }
Ejemplo n.º 37
0
 public void SetScale(MochaVec3 scale)
 {
     SharpMochaPINVOKE.CTransform_SetScale__SWIG_1(swigCPtr, MochaVec3.getCPtr(scale));
     if (SharpMochaPINVOKE.SWIGPendingException.Pending) throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
 }
Ejemplo n.º 38
0
 public MochaVec3 Negate()
 {
     MochaVec3 ret = new MochaVec3(SharpMochaPINVOKE.MochaVec3_Negate(swigCPtr), false);
     return ret;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 40
0
 public MochaVec3 Mul(float rhs)
 {
     MochaVec3 ret = new MochaVec3(SharpMochaPINVOKE.MochaVec3_Mul__SWIG_0(swigCPtr, rhs), true);
     return ret;
 }
Ejemplo n.º 41
0
 public MochaVec3 Min(MochaVec3 rhs)
 {
     MochaVec3 ret = new MochaVec3(SharpMochaPINVOKE.MochaVec3_Min(swigCPtr, MochaVec3.getCPtr(rhs)), true);
     return ret;
 }
Ejemplo n.º 42
0
 public MochaVec3 Lerp(MochaVec3 end, float tValue)
 {
     MochaVec3 ret = new MochaVec3(SharpMochaPINVOKE.MochaVec3_Lerp(swigCPtr, MochaVec3.getCPtr(end), tValue), true);
     return ret;
 }
Ejemplo n.º 43
0
 public MochaVec3 GetEyePos(uint index)
 {
     MochaVec3 ret = new MochaVec3(SharpMochaPINVOKE.OculusVR_GetEyePos(swigCPtr, index), true);
     return ret;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 46
0
 public void ScaleByVector(MochaVec3 rhs)
 {
     SharpMochaPINVOKE.MochaVec3_ScaleByVector(swigCPtr, MochaVec3.getCPtr(rhs));
     if (SharpMochaPINVOKE.SWIGPendingException.Pending) throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
 }
Ejemplo n.º 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();
 }
Ejemplo n.º 48
0
 public MochaVec3 Sub()
 {
     MochaVec3 ret = new MochaVec3(SharpMochaPINVOKE.MochaVec3_Sub__SWIG_0(swigCPtr), true);
     return ret;
 }
Ejemplo n.º 49
0
 public void Translate(MochaVec3 v)
 {
     SharpMochaPINVOKE.CTransform_Translate__SWIG_1(swigCPtr, MochaVec3.getCPtr(v));
     if (SharpMochaPINVOKE.SWIGPendingException.Pending) throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 51
0
 public MochaVec3 GetHalfExtents()
 {
     MochaVec3 ret = new MochaVec3(SharpMochaPINVOKE.CBoxColliderComponent_GetHalfExtents(swigCPtr), false);
     return ret;
 }
Ejemplo n.º 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();
 }
Ejemplo n.º 53
0
 public MochaVec3 GetCenter()
 {
     MochaVec3 ret = new MochaVec3(SharpMochaPINVOKE.CZone_GetCenter(swigCPtr), false);
     return ret;
 }
Ejemplo n.º 54
0
 public bool AllGreater(MochaVec3 rhs)
 {
     bool ret = SharpMochaPINVOKE.MochaVec3_AllGreater(swigCPtr, MochaVec3.getCPtr(rhs));
     return ret;
 }
Ejemplo n.º 55
0
 public MochaVec3 GetDiagonalCornerZero()
 {
     MochaVec3 ret = new MochaVec3(SharpMochaPINVOKE.IZone_GetDiagonalCornerZero(swigCPtr), true);
     return ret;
 }
Ejemplo n.º 56
0
 public bool AnyLess(MochaVec3 rhs)
 {
     bool ret = SharpMochaPINVOKE.MochaVec3_AnyLess(swigCPtr, MochaVec3.getCPtr(rhs));
     return ret;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 58
0
 public float Distance(MochaVec3 rhs)
 {
     float ret = SharpMochaPINVOKE.MochaVec3_Distance(swigCPtr, MochaVec3.getCPtr(rhs));
     return ret;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }