AABoxCast.h 424 B

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