SoftBodyStressTest.h 896 B

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