sweepSphereClosest#
Fully qualified name: isaacsim::physics::manager::sweepSphereClosest
- bool isaacsim::physics::manager::sweepSphereClosest(
- float radius,
- const isaacsim::physics::registration::Float3 &origin,
- const isaacsim::physics::registration::Float3 &unitDirection,
- float distance,
- registration::SweepHit &hit,
- bool bothSides,
Finds the closest hit produced by sweeping a sphere through the scene.
Note
Exceptions that escape a backend query callback propagate to the caller and prevent dispatch to later backends.
- 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.
hit – [out] Closest hit. The value is modified only when the function returns
true.bothSides – [in] Whether both sides of mesh triangles participate in the query.
- Returns:
trueif the sphere encountered an object; otherwise,false.