ActivateDuringUpdateTest.h 616 B

123456789101112131415161718
  1. // SPDX-FileCopyrightText: 2021 Jorrit Rouwe
  2. // SPDX-License-Identifier: MIT
  3. #pragma once
  4. #include <Tests/Test.h>
  5. // 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
  6. // 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.
  7. // The second box should not pass through the third box.
  8. class ActivateDuringUpdateTest : public Test
  9. {
  10. public:
  11. JPH_DECLARE_RTTI_VIRTUAL(ActivateDuringUpdateTest)
  12. // Initialize the test
  13. virtual void Initialize() override;
  14. };