mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
simulate serverworld physics
This commit is contained in:
parent
7be27fc1d0
commit
be37c3a6ed
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user