combined the 2 physics shape collider config pair types into 1(#778)
This commit is contained in:
@@ -104,7 +104,7 @@ namespace PhysX
|
||||
}
|
||||
}
|
||||
|
||||
void BaseColliderComponent::SetShapeConfigurationList(const Physics::ShapeConfigurationList& shapeConfigList)
|
||||
void BaseColliderComponent::SetShapeConfigurationList(const AzPhysics::ShapeColliderPairList& shapeConfigList)
|
||||
{
|
||||
if (GetEntity()->GetState() == AZ::Entity::State::Active)
|
||||
{
|
||||
@@ -115,7 +115,7 @@ namespace PhysX
|
||||
m_shapeConfigList = shapeConfigList;
|
||||
}
|
||||
|
||||
Physics::ShapeConfigurationList BaseColliderComponent::GetShapeConfigurations()
|
||||
AzPhysics::ShapeColliderPairList BaseColliderComponent::GetShapeConfigurations()
|
||||
{
|
||||
return m_shapeConfigList;
|
||||
}
|
||||
@@ -319,7 +319,7 @@ namespace PhysX
|
||||
{
|
||||
AZ_Assert(IsMeshCollider(), "InitMeshCollider called for a non-mesh collider.");
|
||||
|
||||
const Physics::ShapeConfigurationPair& shapeConfigurationPair = *(m_shapeConfigList.begin());
|
||||
const AzPhysics::ShapeColliderPair& shapeConfigurationPair = *(m_shapeConfigList.begin());
|
||||
const Physics::ColliderConfiguration& componentColliderConfiguration = *(shapeConfigurationPair.first.get());
|
||||
const Physics::PhysicsAssetShapeConfiguration& physicsAssetConfiguration =
|
||||
*(static_cast<const Physics::PhysicsAssetShapeConfiguration*>(shapeConfigurationPair.second.get()));
|
||||
|
||||
Reference in New Issue
Block a user