sweepBoxClosest#

Fully qualified name: isaacsim::physics::manager::sweepBoxClosest

bool isaacsim::physics::manager::sweepBoxClosest(
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::SweepHit &hit,
bool bothSides,
)#

Finds the closest hit 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.

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

true if the box encountered an object; otherwise, false.