sweepShapeAll#

Fully qualified name: isaacsim::physics::manager::sweepShapeAll

void isaacsim::physics::manager::sweepShapeAll(
registration::PathToken geometryPrimitivePath,
const isaacsim::physics::registration::Float3 &unitDirection,
float distance,
registration::SweepHitReportFunction reportFunction,
bool bothSides,
)#

Reports hits produced by sweeping a USD geometric primitive through the scene.

Note

A backend may use and cache a convex approximation for a mesh query shape. This behavior is backend-specific.

Note

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

Parameters:
  • geometryPrimitivePath – [in] Encoded USD path of the UsdGeomGPrim used as the sweep shape.

  • 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.