1234567891011121314151617181920212223242526 |
- // SPDX-FileCopyrightText: 2022 Jorrit Rouwe
- // SPDX-License-Identifier: MIT
- #pragma once
- #include <Tests/Test.h>
- #include <Jolt/Physics/Ragdoll/Ragdoll.h>
- // This test demonstrates how to create a ragdoll from code
- class CreateRigTest : public Test
- {
- public:
- JPH_DECLARE_RTTI_VIRTUAL(CreateRigTest)
- // Destructor
- virtual ~CreateRigTest() 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;
- };
|