sweepBoxAll#

Fully qualified name: isaacsim::physics::manager::sweepBoxAll

void isaacsim::physics::manager::sweepBoxAll(
const isaacsim::physics::registration::Float3 &halfExtent,
const isaacsim::physics::registration::Float3 &position,
const isaacsim::physics::registration::Float4 &rotation,
const isaacsim::physics::registration::Float3 &unitDirection,
float distance,
registration::SweepHitReportFunction reportFunction,
bool bothSides,
)#

Reports hits produced by sweeping an oriented box through the scene.

Note

Exceptions that escape a backend query callback propagate to the caller and prevent dispatch to later backends.

Parameters:
  • halfExtent – [in] Box half-extents in scene length units. Each component must be nonnegative.

  • position – [in] Initial box-center position in world coordinates.

  • rotation – [in] Box orientation as an (x, y, z, w) quaternion.

  • unitDirection – [in] Normalized sweep direction.

  • distance – [in] Maximum sweep distance in scene length units. Must be nonnegative.

  • reportFunction – [in] Callback invoked for each hit. Returning true continues the current backend’s traversal; returning false stops it.

  • bothSides – [in] Whether both sides of mesh triangles participate in the query.