fenomas / noa

Experimental voxel game engine.
MIT License
608 stars 86 forks source link

Since latest commit, custom meshes of blocks are in wrong position #157

Closed Patbox closed 3 years ago

Patbox commented 3 years ago

Since this commit blocks that use custom meshes are in wrong place.

Before: image After: image

These meshes are still added to the world, but at y = 0

fenomas commented 3 years ago

Hmm - I drastically changed how custom meshes are handled, but they're positioning correctly for me. If you build the noa-examples worlds using the current develop engine, do custom meshes work correctly for you? Your game might be doing something I didn't expect and need to account for.

Patbox commented 3 years ago

I can't recreate it on noa-examples. It doesn't too much of custom logic for it and mesh is created from simple function.

Patbox commented 3 years ago

Okay, I can replicate it on noa-examples by changing playerStart to [0.5, 100, 0.5] (I also replaced one block in worldgen, so it's simpler to check) image

playerStart = [0, 5, 0] image

fenomas commented 3 years ago

Thank you, I can reproduce!

fenomas commented 3 years ago

The test-world reproducing case is now fixed, let me know if it still reproduces in your actual game client.