EPATest.h 605 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 <Tests/Test.h>
  6. // Does a single box vs sphere test without convex radius for visually debugging the EPA algorithm
  7. class EPATest : public Test
  8. {
  9. public:
  10. JPH_DECLARE_RTTI_VIRTUAL(JPH_NO_EXPORT, EPATest)
  11. // Update the test, called before the physics update
  12. virtual void PrePhysicsUpdate(const PreUpdateParams &inParams) override;
  13. private:
  14. bool CollideBoxSphere(Mat44Arg inMatrix, const AABox &inBox, const Sphere &inSphere) const;
  15. };