Пример #1
0
 public void updateWheelTransformsWS(btWheelInfo wheel)
 {
     BulletPINVOKE.btRaycastVehicle_updateWheelTransformsWS__SWIG_1(swigCPtr, btWheelInfo.getCPtr(wheel));
     if (BulletPINVOKE.SWIGPendingException.Pending)
     {
         throw BulletPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #2
0
        public float rayCast(btWheelInfo wheel)
        {
            float ret = BulletPINVOKE.btRaycastVehicle_rayCast(swigCPtr, btWheelInfo.getCPtr(wheel));

            if (BulletPINVOKE.SWIGPendingException.Pending)
            {
                throw BulletPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #3
0
        public btWheelInfo addWheel(btVector3 connectionPointCS0, btVector3 wheelDirectionCS0, btVector3 wheelAxleCS, float suspensionRestLength, float wheelRadius, btRaycastVehicle.btVehicleTuning tuning, bool isFrontWheel)
        {
            btWheelInfo ret = new btWheelInfo(BulletPINVOKE.btRaycastVehicle_addWheel(swigCPtr, btVector3.getCPtr(connectionPointCS0), btVector3.getCPtr(wheelDirectionCS0), btVector3.getCPtr(wheelAxleCS), suspensionRestLength, wheelRadius, btRaycastVehicle.btVehicleTuning.getCPtr(tuning), isFrontWheel), false);

            if (BulletPINVOKE.SWIGPendingException.Pending)
            {
                throw BulletPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #4
0
        public btWheelInfo getWheelInfo(int index)
        {
            btWheelInfo ret = new btWheelInfo(BulletPINVOKE.btRaycastVehicle_getWheelInfo__SWIG_0(swigCPtr, index), false);

            return(ret);
        }
Пример #5
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(btWheelInfo obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }