/* * 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 #include #include #include #include #include namespace PhysX { void SphereColliderComponent::Reflect(AZ::ReflectContext* context) { if (auto serializeContext = azrtti_cast(context)) { serializeContext->Class() ->Version(1) ; } } // BaseColliderComponent void SphereColliderComponent::UpdateScaleForShapeConfigs() { if (m_shapeConfigList.size() != 1) { AZ_Error("PhysX Capsule Collider Component", false, "Expected exactly one collider/shape configuration for entity \"%s\".", GetEntity()->GetName().c_str()); return; } m_shapeConfigList[0].second->m_scale = Utils::GetTransformScale(GetEntityId()); } }