connorwmackay / BlockGame

Another attempt at making a Minecraft clone with OpenGL and C++
GNU General Public License v3.0
0 stars 0 forks source link

Optimise World Collision Checking #12

Closed connorwmackay closed 2 months ago

connorwmackay commented 5 months ago

Change the world collision checking function to work as follows:

  1. Determine all the block positions inside the collider
  2. Determine all the block positions around the collider (1 block radius)
  3. Check for collisions with all blocks (using block position)