public static PxPhysics PxCreatePhysics(SWIGTYPE_p_uint32_t version, SWIGTYPE_p_physx__PxFoundation foundation, PxTolerancesScale scale, bool trackOutstandingAllocations, SWIGTYPE_p_physx__PxPvd pvd) { global::System.IntPtr cPtr = physxPINVOKE.PxCreatePhysics__SWIG_0(SWIGTYPE_p_uint32_t.getCPtr(version), SWIGTYPE_p_physx__PxFoundation.getCPtr(foundation), PxTolerancesScale.getCPtr(scale), trackOutstandingAllocations, SWIGTYPE_p_physx__PxPvd.getCPtr(pvd)); PxPhysics ret = (cPtr == global::System.IntPtr.Zero) ? null : new PxPhysics(cPtr, false); if (physxPINVOKE.SWIGPendingException.Pending) { throw physxPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_physx__PxPvd obj) { return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr); }