Files

33 lines
825 B
C
Raw Permalink Normal View History

// 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>
class LoadSaveRigTest : public Test
{
public:
JPH_DECLARE_RTTI_VIRTUAL(JPH_NO_EXPORT, LoadSaveRigTest)
// Description of the test
virtual const char * GetDescription() const override
{
return "Loads a ragdoll from disc, writes it to an object stream, loads it again and simulates it.";
}
// 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;
};