sweepBoxAny#
Fully qualified name: isaacsim::physics::manager::sweepBoxAny
- bool isaacsim::physics::manager::sweepBoxAny(
- 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,
- bool bothSides,
Tests whether a swept oriented box encounters any object in the scene.
Note
Exceptions that escape a backend query callback propagate to the caller.
- 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.
bothSides – [in] Whether both sides of mesh triangles participate in the query.
- Returns:
trueif the box encountered an object; otherwise,false.