You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.5 KiB
C++
34 lines
1.5 KiB
C++
/*
|
|
* Copyright (c) Contributors to the Open 3D Engine Project.
|
|
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0 OR MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AzFramework/Physics/Configuration/JointConfiguration.h>
|
|
|
|
namespace EMotionFX
|
|
{
|
|
// Add so that RagdollNodeInspectorPlugin::PhysXCharactersGemAvailable() will return the correct value
|
|
// We duplicated the D6JointLimitConfiguration because it doesn't exist in the test environment.
|
|
class D6JointLimitConfiguration
|
|
: public AzPhysics::JointConfiguration
|
|
{
|
|
public:
|
|
AZ_CLASS_ALLOCATOR(D6JointLimitConfiguration, AZ::SystemAllocator, 0);
|
|
// This uses the same uuid as the production D6JointLimitConfiguration.
|
|
// The Ragdoll UI uses this UUID to see if physx is available.
|
|
AZ_RTTI(D6JointLimitConfiguration, "{90C5C23D-16C0-4F23-AD50-A190E402388E}", AzPhysics::JointConfiguration);
|
|
|
|
static void Reflect(AZ::ReflectContext* context);
|
|
|
|
float m_swingLimitY = 45.0f; ///< Maximum angle in degrees from the Y axis of the joint frame.
|
|
float m_swingLimitZ = 45.0f; ///< Maximum angle in degrees from the Z axis of the joint frame.
|
|
float m_twistLimitLower = -45.0f; ///< Lower limit in degrees for rotation about the X axis of the joint frame.
|
|
float m_twistLimitUpper = 45.0f; ///< Upper limit in degrees for rotation about the X axis of the joint frame.
|
|
};
|
|
} // namespace EMotionFX
|