AABB - checking collisions

Hi,

If you have a world made up of say 10000 objects, detecting collision with all these is going to be very slow, do you need use some form of spatial partioning to speed this up? I was thinking on the lines of how minecraft does it, there a thousands and thousands of cubes to check, I take it Notch used some form of AABB for collision checks and some spatial partioning?

Thanks for any advice,
Steve

Only check collision with the blocks around you, so up, down, left, right. anywhere where the place could collide, like its impossible for the player to be colliding with a object separated by 10 blocks.

Hi,

Ok, so convert players position into object space (voxel space), check if collision with blocks north,east,south,west,up and down using AABB?

If this wasn’t a voxel game, say a 3d game where objects aren’t static, I guess you would then need some spatial technique?

Thanks

You might find this article useful.

Hey thanks,

Very interesting article.