Addressed feedback from PR 4874. (#4915)
* Addressed feedback from PR 4874. * Removed second copy of HeightfieldProviderBus.h from cmake file * Changed CookedMeshShapeConfiguration and HeightfieldShapeConfiguration to have less messy implementations, instead opting for the slightly less messy const_cast inside of Utils.cpp and DebugDraw.cpp. * Changed InitHeightfieldShapeConfiguraiton to CreateHeightfieldShapeConfiguration with a better API signature. Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Fixed indentation Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com>
This commit is contained in:
@@ -201,9 +201,7 @@ namespace PhysX
|
||||
|
||||
void EditorHeightfieldColliderComponent::InitHeightfieldShapeConfiguration()
|
||||
{
|
||||
Physics::HeightfieldShapeConfiguration& configuration = static_cast<Physics::HeightfieldShapeConfiguration&>(*m_shapeConfig);
|
||||
|
||||
Utils::InitHeightfieldShapeConfiguration(GetEntityId(), configuration);
|
||||
*m_shapeConfig = Utils::CreateHeightfieldShapeConfiguration(GetEntityId());
|
||||
}
|
||||
|
||||
void EditorHeightfieldColliderComponent::RefreshHeightfield()
|
||||
|
||||
Reference in New Issue
Block a user