Need Bug Fix. Recast with rasterize terrain

thx for your guys work, I really appreciate. well, I trapped with recast generation.
since create terrain with 1:1 ratio, it works perfectly. but, with non-uniform scale, it works really bad.
check this picture

I guess this happend with the RecastGenerator class when generate from terrain’s data.(RecastGenerator.cs line 850)

well, I just work it out.

fix this line should be fine:

terrainVertices[nz*hWidth + nx] = new Vector3 (z * hSampleSize.x,heights[x,z]*heightScale, x * hSampleSize.z) + offset;

just swap the sample size

Bump.
This problem still exists (in version 3.6).

1 Like

Thank you. I have fixed it in my dev version now.

Uploaded beta version 3.6.5 with this fix included.