ActivateDuringUpdateTest.h 695 B

12345678910111213141516171819
  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. // This test tests a body that activates during the simulation step to check if it does collision detection with any other bodies during that step
  7. // To do so it uses 3 boxes that all initially collide. The left most box is the only one awake and has a high velocity.
  8. // The second box should not pass through the third box.
  9. class ActivateDuringUpdateTest : public Test
  10. {
  11. public:
  12. JPH_DECLARE_RTTI_VIRTUAL(JPH_NO_EXPORT, ActivateDuringUpdateTest)
  13. // Initialize the test
  14. virtual void Initialize() override;
  15. };