LoadSaveRigTest.h 734 B

123456789101112131415161718192021222324252627
  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. #include <Jolt/Physics/Ragdoll/Ragdoll.h>
  7. // This test loads a ragdoll from disc, writes it to an object stream, loads it again and simulates it
  8. class LoadSaveRigTest : public Test
  9. {
  10. public:
  11. JPH_DECLARE_RTTI_VIRTUAL(JPH_NO_EXPORT, LoadSaveRigTest)
  12. // Destructor
  13. virtual ~LoadSaveRigTest() override;
  14. // Number used to scale the terrain and camera movement to the scene
  15. virtual float GetWorldScale() const override { return 0.2f; }
  16. virtual void Initialize() override;
  17. private:
  18. // Our ragdoll
  19. Ref<Ragdoll> mRagdoll;
  20. };