I'm trying to build a physics network reconciliation system with UnityPhysics, so I have to be able to invoke the physics simulation multiple times per frame, and also ensure the physics simulation doesn't run, unless I tell it to programmatically. For regular PhysX, this would look like...
private void SwitchToManualPhysicsSim()
{
Physics.simulationMode = SimulationMode.Script;
}
private void SimulatePhysics(float deltaTime)
{
Physics.Simulate(deltaTime);
}
What's the ECS equivalent of this? Bonus points if I can do this from a MonoBehaviour script (I know this isn't best practise, will refactor into ECS later if I can just get a barebones system working for now)