123456789101112131415161718192021222324252627 |
- // Jolt Physics Library (https://github.com/jrouwe/JoltPhysics)
- // SPDX-FileCopyrightText: 2023 Jorrit Rouwe
- // SPDX-License-Identifier: MIT
- #pragma once
- #include <Tests/Test.h>
- #include <Jolt/Physics/Ragdoll/Ragdoll.h>
- // This test loads a ragdoll from disc, writes it to an object stream, loads it again and simulates it
- class LoadSaveRigTest : public Test
- {
- public:
- JPH_DECLARE_RTTI_VIRTUAL(JPH_NO_EXPORT, LoadSaveRigTest)
- // Destructor
- virtual ~LoadSaveRigTest() override;
- // Number used to scale the terrain and camera movement to the scene
- virtual float GetWorldScale() const override { return 0.2f; }
- virtual void Initialize() override;
- private:
- // Our ragdoll
- Ref<Ragdoll> mRagdoll;
- };
|