unity-footprints icon indicating copy to clipboard operation
unity-footprints copied to clipboard

Only Works with 10x10 Terrain

Open ndumais opened this issue 1 year ago • 1 comments

Unless I'm missing something, calculations only seem to work on a 10x10 terrain grid, do you remember why that is?

image

Footprints wont draw properly otherwise, even though the code does use terrain.size.x and .y, still not quite sure where the issue or limitation lies.

Thanks!

ndumais avatar Jun 22 '23 17:06 ndumais

Turns out this is due to to heightmap limitations, if I read correctly. This led me to another issue that you might have an idea on how to fix. Walking back and forth along the edge of two terrains will spawn footsteps along the opposite edge aswell, which should not happen, here's a character walking along the edge:

image

And the two opposite edges where I did not walk:

image

image

Been experimenting for a few hours looking for a way to fix this, still not sure!

Edit: I'm currently trying to figure out the best place, and how to catch an outlying value that would be applied to the opposite edge.

ndumais avatar Jun 25 '23 04:06 ndumais