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

Blocks Sometimes Get Placed and Removed At The Wrong Location #20

Open connorwmackay opened 1 month ago

connorwmackay commented 1 month ago

This could be an issue with the way raycasts and/or collision are done. It results in blocks being placed in the wrong place most of the time. Breaking blocks is more stable, but still not accurate.

connorwmackay commented 1 month ago

This could be fixed by using Bresenham's line algorithm.