Here's a starting image.

Then I rotate one pixel over and I get cobble even though I'm in the sand block.

Also, if I move over laterally, I get sand where I ought to get cobble.

P. S. I've put the code in a zip file attachment.
Krock wrote:I don't get why you use vector.normalize() on player:get_look_dir().
From what I've seen in the codes, it looks like a precision error.
Zeno wrote:Edit ^^ have fun (?) with that, heh
I haven't really looked at your code but have you taken the distance of the player into account (i.e. raycast in the direction the player is looking and seeing what/where it intersects)?
Users browsing this forum: No registered users and 2 guests