richardbiely / Voxelmetric

An efficient voxel framework for Unity3d

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Colliders not generating above Y 59

Hertzole opened this issue · comments

When trying to move around with a physics character in one of the example scenes, I noticed there were no colliders for chunks above Y level of 59.

As you can see in this picture, the green collider outlines do not appear on some of the white blocks and the top of the dirt blocks. That is where a chunk at level 60 begins.
Unity_2019-03-10_21-45-18

The problem occurs on all chunks up to the build limit and anywhere in the world, so X and Z don't matter.

I've noticed this too, I'm still looking for a fix

Found a fix: go into the loadchunks.cs file and replace chunk.NeedsColliderGeometry = xd <= 1 && yd <= 1 && zd <= 1; with chunk.NeedsColliderGeometry = xd <= 1 && zd <= 1;
This will make colliders and things ignore the Y value for collision.