12345678910111213141516171819202122232425262728 |
- // Jolt Physics Library (https://github.com/jrouwe/JoltPhysics)
- // SPDX-FileCopyrightText: 2023 Jorrit Rouwe
- // SPDX-License-Identifier: MIT
- #pragma once
- #include <Tests/Test.h>
- // This test stresses the soft body system by creating a large number of soft bodies / a soft body with many vertices
- class SoftBodyStressTest : public Test
- {
- public:
- JPH_DECLARE_RTTI_VIRTUAL(JPH_NO_EXPORT, SoftBodyStressTest)
- // See: Test
- virtual void Initialize() override;
- // Optional settings menu
- virtual bool HasSettingsMenu() const override { return true; }
- virtual void CreateSettingsMenu(DebugUI *inUI, UIElement *inSubMenu) override;
- private:
- // List of possible scene names
- static const char * sScenes[];
- // Filename of animation to load for this test
- static const char * sSceneName;
- };
|