LoadSaveBinaryRigTest.h 672 B

1234567891011121314151617181920212223242526
  1. // SPDX-FileCopyrightText: 2021 Jorrit Rouwe
  2. // SPDX-License-Identifier: MIT
  3. #pragma once
  4. #include <Tests/Test.h>
  5. #include <Jolt/Physics/Ragdoll/Ragdoll.h>
  6. // This test loads a ragdoll from disc, writes it to a binary stream, loads it again and simulates it
  7. class LoadSaveBinaryRigTest : public Test
  8. {
  9. public:
  10. JPH_DECLARE_RTTI_VIRTUAL(LoadSaveBinaryRigTest)
  11. // Destructor
  12. virtual ~LoadSaveBinaryRigTest() override;
  13. // Number used to scale the terrain and camera movement to the scene
  14. virtual float GetWorldScale() const override { return 0.2f; }
  15. virtual void Initialize() override;
  16. private:
  17. // Our ragdoll
  18. Ref<Ragdoll> mRagdoll;
  19. };