AABoxCast.h 469 B

12345678910111213141516171819
  1. // SPDX-FileCopyrightText: 2021 Jorrit Rouwe
  2. // SPDX-License-Identifier: MIT
  3. #pragma once
  4. #include <Jolt/Geometry/AABox.h>
  5. JPH_NAMESPACE_BEGIN
  6. /// Structure that holds AABox moving linearly through 3d space
  7. struct AABoxCast
  8. {
  9. JPH_OVERRIDE_NEW_DELETE
  10. AABox mBox; ///< Axis aligned box at starting location
  11. Vec3 mDirection; ///< Direction and length of the cast (anything beyond this length will not be reported as a hit)
  12. };
  13. JPH_NAMESPACE_END