Example #1
0
        public RigidBodyComponent SetOrientation(SWIGTYPE_p_Math__Matrix3 orientation)
        {
            RigidBodyComponent ret = new RigidBodyComponent(SharpMochaPINVOKE.RigidBodyComponent_SetOrientation(swigCPtr, SWIGTYPE_p_Math__Matrix3.getCPtr(orientation)), false);

            if (SharpMochaPINVOKE.SWIGPendingException.Pending)
            {
                throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Example #2
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 #3
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 #4
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 #5
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 #6
0
 public RigidBodyComponent SetOrientation(SWIGTYPE_p_Math__Matrix3 orientation)
 {
     RigidBodyComponent ret = new RigidBodyComponent(SharpMochaPINVOKE.RigidBodyComponent_SetOrientation(swigCPtr, SWIGTYPE_p_Math__Matrix3.getCPtr(orientation)), false);
     if (SharpMochaPINVOKE.SWIGPendingException.Pending) throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Example #7
0
 public RigidBodyComponent SetHasGravity(bool hasGravity)
 {
     RigidBodyComponent ret = new RigidBodyComponent(SharpMochaPINVOKE.RigidBodyComponent_SetHasGravity(swigCPtr, hasGravity), false);
     return ret;
 }
Example #8
0
 public RigidBodyComponent SetAwake(bool awake)
 {
     RigidBodyComponent ret = new RigidBodyComponent(SharpMochaPINVOKE.RigidBodyComponent_SetAwake(swigCPtr, awake), false);
     return ret;
 }
Example #9
0
 public RigidBodyComponent SetAllowRotation(bool allowRotation)
 {
     RigidBodyComponent ret = new RigidBodyComponent(SharpMochaPINVOKE.RigidBodyComponent_SetAllowRotation(swigCPtr, allowRotation), false);
     return ret;
 }
Example #10
0
 public RigidBodyComponent ApplyLinearImpulse(MochaVec3 impulse)
 {
     RigidBodyComponent ret = new RigidBodyComponent(SharpMochaPINVOKE.RigidBodyComponent_ApplyLinearImpulse(swigCPtr, MochaVec3.getCPtr(impulse)), false);
     if (SharpMochaPINVOKE.SWIGPendingException.Pending) throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Example #11
0
        public RigidBodyComponent SetType(int type)
        {
            RigidBodyComponent ret = new RigidBodyComponent(SharpMochaPINVOKE.RigidBodyComponent_SetType(swigCPtr, type), false);

            return(ret);
        }
Example #12
0
        public RigidBodyComponent SetHasGravity(bool hasGravity)
        {
            RigidBodyComponent ret = new RigidBodyComponent(SharpMochaPINVOKE.RigidBodyComponent_SetHasGravity(swigCPtr, hasGravity), false);

            return(ret);
        }
Example #13
0
        public RigidBodyComponent SetAllowRotation(bool allowRotation)
        {
            RigidBodyComponent ret = new RigidBodyComponent(SharpMochaPINVOKE.RigidBodyComponent_SetAllowRotation(swigCPtr, allowRotation), false);

            return(ret);
        }
Example #14
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(RigidBodyComponent obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
Example #15
0
 public RigidBodyComponent SetType(int type)
 {
     RigidBodyComponent ret = new RigidBodyComponent(SharpMochaPINVOKE.RigidBodyComponent_SetType(swigCPtr, type), false);
     return ret;
 }
Example #16
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(RigidBodyComponent obj)
 {
     return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
 }
Example #17
0
        public RigidBodyComponent SetAwake(bool awake)
        {
            RigidBodyComponent ret = new RigidBodyComponent(SharpMochaPINVOKE.RigidBodyComponent_SetAwake(swigCPtr, awake), false);

            return(ret);
        }
Example #18
0
 public RigidBodyComponent ApplyMasslessForce(MochaVec3 force, MochaVec3 at)
 {
     RigidBodyComponent ret = new RigidBodyComponent(SharpMochaPINVOKE.RigidBodyComponent_ApplyMasslessForce(swigCPtr, MochaVec3.getCPtr(force), MochaVec3.getCPtr(at)), false);
     if (SharpMochaPINVOKE.SWIGPendingException.Pending) throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Example #19
0
    void InitCar()
    {
        foundCar = true;
        carPhysics = rcCar.RequireComponent<CPhysics>();
        carPhysics.mColliderType = 1;

        currYRotation = rcCar.transform.GetRotation().y;

        rcCarRigidCom = carPhysics.rigidCom;
    }