2
0

SoftBodyUpdatePositionTest.h 711 B

12345678910111213141516171819
  1. // Jolt Physics Library (https://github.com/jrouwe/JoltPhysics)
  2. // SPDX-FileCopyrightText: 2023 Jorrit Rouwe
  3. // SPDX-License-Identifier: MIT
  4. #pragma once
  5. #include <Tests/Test.h>
  6. // This test tests soft bodies with and without 'update position' and 'make rotation identity'
  7. // If you turn on 'Draw World Transforms' you will see that 2 cubes will stay at their initial position.
  8. // If you turn on 'Draw Bounding Boxes' then you will see that the cubes that didn't have 'make rotation identity' will have a bigger bounding box.
  9. class SoftBodyUpdatePositionTest : public Test
  10. {
  11. public:
  12. JPH_DECLARE_RTTI_VIRTUAL(JPH_NO_EXPORT, SoftBodyUpdatePositionTest)
  13. // See: Test
  14. virtual void Initialize() override;
  15. };