SoftBodyUpdatePositionTest.h 784 B

123456789101112131415161718192021222324
  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. class SoftBodyUpdatePositionTest : public Test
  7. {
  8. public:
  9. JPH_DECLARE_RTTI_VIRTUAL(JPH_NO_EXPORT, SoftBodyUpdatePositionTest)
  10. // Description of the test
  11. virtual const char *GetDescription() const override
  12. {
  13. return "This test tests soft bodies with and without 'update position' and 'make rotation identity'.\n"
  14. "The labels of the bodies that don't update their position will stay in place.\n"
  15. "If you turn on 'Draw Bounding Boxes' then you will see that the cubes that with 'make rotation identity' have a smaller bounding box.";
  16. }
  17. // See: Test
  18. virtual void Initialize() override;
  19. };