starandserpent / java-TerraServer

Terra - Voxel octree of chunks, made for Rituals of the old
MIT License
18 stars 2 forks source link

Can't place blocks cross-chunk #56

Open Pilvinen opened 5 years ago

Pilvinen commented 5 years ago

Can't place blocks cross-chunk when the side of the block is being targeted.

https://i.snag.gy/TOM0KG.jpg

The image is also showing another related bug which happens at chunk border, but only when you place blocks by targeting a block's side. If you place blocks by targeting top of the blocks no issues appear and blocks can be placed.

It seems that this is an issue due to the fast and sloppy way of using the mesh to get coordinates for the picker. Wrong chunk gets selected.

Pawlost commented 5 years ago

this issue is related to this https://github.com/starandserpent/terra-test-game/issues/4 which is related to this https://github.com/starandserpent/Terra/issues/45

It is not bug, it is whole missing feature, I will leave it here since it has been discussed many times