コード例 #1
0
 public virtual SWIGTYPE_p_void castRay(SWIGTYPE_p_btVector3 from, SWIGTYPE_p_btVector3 to, btVehicleRaycasterResult result)
 {
     IntPtr cPtr = BulletDynamicsPINVOKE.btDefaultVehicleRaycaster_castRay(swigCPtr, SWIGTYPE_p_btVector3.getCPtr(from), SWIGTYPE_p_btVector3.getCPtr(to), btVehicleRaycasterResult.getCPtr(result));
     SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false);
     if (BulletDynamicsPINVOKE.SWIGPendingException.Pending) throw BulletDynamicsPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
コード例 #2
0
 internal static HandleRef getCPtr(btVehicleRaycasterResult obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }
コード例 #3
0
        public virtual SWIGTYPE_p_void castRay(SWIGTYPE_p_btVector3 from, SWIGTYPE_p_btVector3 to, btVehicleRaycasterResult result)
        {
            IntPtr          cPtr = BulletDynamicsPINVOKE.btDefaultVehicleRaycaster_castRay(swigCPtr, SWIGTYPE_p_btVector3.getCPtr(from), SWIGTYPE_p_btVector3.getCPtr(to), btVehicleRaycasterResult.getCPtr(result));
            SWIGTYPE_p_void ret  = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false);

            if (BulletDynamicsPINVOKE.SWIGPendingException.Pending)
            {
                throw BulletDynamicsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #4
0
 internal static HandleRef getCPtr(btVehicleRaycasterResult obj)
 {
     return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }