sweepSphereAny#
Fully qualified name: isaacsim::physics::manager::sweepSphereAny
- bool isaacsim::physics::manager::sweepSphereAny(
- float radius,
- const isaacsim::physics::registration::Float3 &origin,
- const isaacsim::physics::registration::Float3 &unitDirection,
- float distance,
- bool bothSides,
Tests whether a swept sphere encounters any object in the scene.
Note
Exceptions that escape a backend query callback propagate to the caller.
- Parameters:
radius – [in] Sphere radius in scene length units. Must be nonnegative.
origin – [in] Initial sphere-center position in world coordinates.
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 sphere encountered an object; otherwise,false.