/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license below or the license accompanying this file. Do not * remove or modify any license notices. This file is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * */ #include "StdAfx.h" #include namespace Blast { ShapesProvider::ShapesProvider(AZ::EntityId entityId, Physics::RigidBodyConfiguration configuration) : m_entityId(entityId) , m_configuration(configuration) { PhysX::ColliderComponentRequestBus::Handler::BusConnect(m_entityId); } ShapesProvider::~ShapesProvider() { PhysX::ColliderComponentRequestBus::Handler::BusDisconnect(m_entityId); } Physics::ShapeConfigurationList ShapesProvider::GetShapeConfigurations() { return {}; } AZStd::vector> ShapesProvider::GetShapes() { return m_shapes; } void ShapesProvider::AddShape(const AZStd::shared_ptr shape) { m_shapes.push_back(shape); } Physics::RigidBodyConfiguration ShapesProvider::GetRigidBodyConfiguration() { return m_configuration; } Physics::WorldBodyConfiguration ShapesProvider::GetWorldBodyConfiguration() { return static_cast(m_configuration); } } // namespace Blast