Пример #1
0
 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();
     }
 }
Пример #2
0
 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();
     }
 }