collision detection - ray casting too many objects?

225 views Asked by At

I have made a dynamic maze out of voxels, it looke like this:Map logged to console

At that size its using about 780 voxels.

Im using a camera to fly around but I can walk through walls.

What is the best way to detect collisions?

If I loop through 700+ objects, each render loop to ray cast, I expect this to cause a huge bottle neck or is 700+ objects nothing to worry about?

Thanks.

0

There are 0 answers