Ajout de Jolt Physics + 1ere version des factory entitecomposants - camera, transform, rigidbody, collider, renderer
This commit is contained in:
32
lib/All/JoltPhysics/Samples/Tests/Rig/LoadSaveRigTest.h
Normal file
32
lib/All/JoltPhysics/Samples/Tests/Rig/LoadSaveRigTest.h
Normal file
@@ -0,0 +1,32 @@
|
||||
// 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;
|
||||
};
|
||||
Reference in New Issue
Block a user