/* * 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 * */ #include "JointUtils.h" #include #include #include #include namespace ROS2Controllers::JointUtils { bool HasNonFixedJoints(const AZ::Entity* entity) { const auto* prismaticJoint = entity->FindComponent(); const auto* ballJoint = entity->FindComponent(); const auto* hingeJoint = entity->FindComponent(); const auto* articulation = entity->FindComponent(); const bool hasJoints = prismaticJoint || ballJoint || hingeJoint || articulation; return hasJoints; } } // namespace ROS2Controllers::JointUtils