simulate serverworld physics

This commit is contained in:
vis2k 2021-05-16 18:53:40 +08:00
parent 7be27fc1d0
commit be37c3a6ed

View File

@ -85,4 +85,11 @@ void OnSceneLoaded(Scene scene, LoadSceneMode mode)
Strip(ServerWorld);
}
}
void FixedUpdate()
{
// then simulate physics in our server physics scene too
// TODO 2D?
ServerWorld.GetPhysicsScene().Simulate(Time.fixedDeltaTime);
}
}