SoftBodyStressTest.h 807 B

12345678910111213141516171819202122232425262728
  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 stresses the soft body system by creating a large number of soft bodies / a soft body with many vertices
  7. class SoftBodyStressTest : public Test
  8. {
  9. public:
  10. JPH_DECLARE_RTTI_VIRTUAL(JPH_NO_EXPORT, SoftBodyStressTest)
  11. // See: Test
  12. virtual void Initialize() override;
  13. // Optional settings menu
  14. virtual bool HasSettingsMenu() const override { return true; }
  15. virtual void CreateSettingsMenu(DebugUI *inUI, UIElement *inSubMenu) override;
  16. private:
  17. // List of possible scene names
  18. static const char * sScenes[];
  19. // Filename of animation to load for this test
  20. static const char * sSceneName;
  21. };