adding physics tick time to post simulate event (#1401)

This commit is contained in:
amzn-sean
2021-06-18 14:09:34 +01:00
committed by GitHub
parent 108b6f8e0c
commit b17c5ca3e6
4 changed files with 6 additions and 4 deletions
+2 -1
View File
@@ -219,8 +219,9 @@ namespace PhysX
preSimEventCount++;
});
AzPhysics::SystemEvents::OnPostsimulateEvent::Handler postSimEvent(
[&postSimEventCount]()
[&expectedTickTime, &postSimEventCount](float deltaTime)
{
EXPECT_NEAR(expectedTickTime, deltaTime, 0.001f);
postSimEventCount++;
});
physicsSystem->RegisterPreSimulateEvent(preSimEvent);