WaterShapeTest.h 616 B

12345678910111213141516171819202122232425
  1. // Jolt Physics Library (https://github.com/jrouwe/JoltPhysics)
  2. // SPDX-FileCopyrightText: 2021 Jorrit Rouwe
  3. // SPDX-License-Identifier: MIT
  4. #pragma once
  5. #include <Tests/Test.h>
  6. class WaterShapeTest : public Test
  7. {
  8. public:
  9. JPH_DECLARE_RTTI_VIRTUAL(JPH_NO_EXPORT, WaterShapeTest)
  10. // Description of the test
  11. virtual const char * GetDescription() const override
  12. {
  13. return "Shows buoyancy of various shapes.";
  14. }
  15. // Initialize the test
  16. virtual void Initialize() override;
  17. // Update the test, called before the physics update
  18. virtual void PrePhysicsUpdate(const PreUpdateParams &inParams) override;
  19. };