public virtual void sweep(PxBounds3 aabb, PxVec3 unitDir, float maxDist, PxSpatialLocationCallback callback) { physxPINVOKE.PxSpatialIndex_sweep(swigCPtr, PxBounds3.getCPtr(aabb), PxVec3.getCPtr(unitDir), maxDist, PxSpatialLocationCallback.getCPtr(callback)); if (physxPINVOKE.SWIGPendingException.Pending) { throw physxPINVOKE.SWIGPendingException.Retrieve(); } }
public virtual void raycast(PxVec3 origin, PxVec3 unitDir, float maxDist, PxSpatialLocationCallback callback) { physxPINVOKE.PxSpatialIndex_raycast(swigCPtr, PxVec3.getCPtr(origin), PxVec3.getCPtr(unitDir), maxDist, PxSpatialLocationCallback.getCPtr(callback)); if (physxPINVOKE.SWIGPendingException.Pending) { throw physxPINVOKE.SWIGPendingException.Retrieve(); } }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(PxSpatialLocationCallback obj) { return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr); }