sweepShapeAny#
Fully qualified name: isaacsim::physics::manager::sweepShapeAny
- bool isaacsim::physics::manager::sweepShapeAny(
- registration::PathToken geometryPrimitivePath,
- const isaacsim::physics::registration::Float3 &unitDirection,
- float distance,
- bool bothSides,
Tests whether a swept USD geometric primitive encounters any object in 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.
- Parameters:
geometryPrimitivePath – [in] Encoded USD path of the
UsdGeomGPrimused as the sweep shape.unitDirection – [in] Normalized sweep direction.
distance – [in] Maximum sweep distance in scene length units. Must be nonnegative.
bothSides – [in] Whether both sides of mesh triangles participate in the query.
- Returns:
trueif the shape encountered an object; otherwise,false.