AABoxCast.h 533 B

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