LYN-7640 Terrain Physics Materials hooked up all the way down to PhysX

Signed-off-by: Sergey Pereslavtsev <pereslav@amazon.com>
This commit is contained in:
Sergey Pereslavtsev
2022-01-20 19:36:33 +00:00
parent e1b2458591
commit c31e3c0208
7 changed files with 302 additions and 73 deletions
@@ -189,6 +189,9 @@ namespace PhysX
configuration.m_entityId = GetEntityId();
configuration.m_debugName = GetEntity()->GetName();
// Update material selection from the mapping
Utils::SetMaterialsFromHeightfieldProvider(GetEntityId(), m_colliderConfig.m_materialSelection);
AzPhysics::ShapeColliderPairList colliderShapePairs;
colliderShapePairs.emplace_back(AZStd::make_shared<Physics::ColliderConfiguration>(m_colliderConfig), m_shapeConfig);
configuration.m_colliderAndShapeData = colliderShapePairs;