D6JointLimitConfiguration.h 1.4 KB

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #pragma once
  9. #include <AzFramework/Physics/Configuration/JointConfiguration.h>
  10. namespace EMotionFX
  11. {
  12. // Add so that RagdollNodeInspectorPlugin::PhysXCharactersGemAvailable() will return the correct value
  13. // We duplicated the D6JointLimitConfiguration because it doesn't exist in the test environment.
  14. struct D6JointLimitConfiguration
  15. : public AzPhysics::JointConfiguration
  16. {
  17. public:
  18. AZ_CLASS_ALLOCATOR(D6JointLimitConfiguration, AZ::SystemAllocator);
  19. // This uses the same uuid as the production D6JointLimitConfiguration.
  20. AZ_RTTI(D6JointLimitConfiguration, "{88E067B4-21E8-4FFA-9142-6C52605B704C}", AzPhysics::JointConfiguration);
  21. static void Reflect(AZ::ReflectContext* context);
  22. float m_swingLimitY = 45.0f; ///< Maximum angle in degrees from the Y axis of the joint frame.
  23. float m_swingLimitZ = 45.0f; ///< Maximum angle in degrees from the Z axis of the joint frame.
  24. float m_twistLimitLower = -45.0f; ///< Lower limit in degrees for rotation about the X axis of the joint frame.
  25. float m_twistLimitUpper = 45.0f; ///< Upper limit in degrees for rotation about the X axis of the joint frame.
  26. };
  27. } // namespace EMotionFX