So basically I’m trying to generate a random dungeon by simply fitting room exists together. I also do check if the new spawned room collides with any other room or not, but the collision is not being detected since physics didn’t update between. So how can I “force” physics to update? I tried giving time between room generation and collision check and it worked however I don’t think that’s a good solution.
Physics.Simulate() does exactly that
Thanks! Can I enable the auto simulate option after the dungeon is generated or do I need to call simulate myself at fixed update?
Physics.autoSimulation = false;
Physics.Simulate(0.1f);
Physics.autoSimulation = true;
1 Like