RemoveSimulatedBody automatically updates the requested handle to be invalid once removed. (#740)

This commit is contained in:
amzn-sean
2021-05-13 15:04:00 +01:00
committed by GitHub
parent a13c9e8d53
commit 7f79cc8796
21 changed files with 33 additions and 55 deletions
@@ -283,7 +283,6 @@ namespace PhysX
if (auto* sceneInterface = AZ::Interface<AzPhysics::SceneInterface>::Get())
{
sceneInterface->RemoveSimulatedBody(m_editorSceneHandle, m_editorRigidBodyHandle);
m_editorRigidBodyHandle = AzPhysics::InvalidSimulatedBodyHandle;
}
}
@@ -428,7 +427,6 @@ namespace PhysX
if (auto* sceneInterface = AZ::Interface<AzPhysics::SceneInterface>::Get())
{
sceneInterface->RemoveSimulatedBody(m_editorSceneHandle, m_editorRigidBodyHandle);
m_editorRigidBodyHandle = AzPhysics::InvalidSimulatedBodyHandle;
CreateEditorWorldRigidBody();
}