AllowedDOFsTest.h 655 B

1234567891011121314151617181920212223242526
  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 AllowedDOFsTest : public Test
  7. {
  8. public:
  9. JPH_DECLARE_RTTI_VIRTUAL(JPH_NO_EXPORT, AllowedDOFsTest)
  10. // Description of the test
  11. virtual const char *GetDescription() const override
  12. {
  13. return "Shows all permutations of allowed degrees of freedom for a body (see EAllowedDOFs).\n"
  14. "The boxes are constrained to the world using a distance constraint, press C to show it.";
  15. }
  16. // See: Test
  17. virtual void Initialize() override;
  18. private:
  19. BodyIDVector mBodies;
  20. };