Collision detection via workers?

Hi there!

So we’re implementing a game-like project where we have FP style controls, an environment and collision detection for the player(s). However I noticed that on weaker hardware or whenever there’s a processing lag for whatever reason, collision detection stops working properly and ppl end up walking through objects, or falling through the floor etc.

Generally speaking, the way things work in games is that you might get a drop in FPS, but collision detection still needs to work, obviously :slight_smile:

How can we ensure this in ThreeJS? Would handing off collision detection to a webworker solve this? Or is there a better/more robust way?

Thanks!

1 Like

Same problem but still difficult to implement