Support Forum

Z value shifts when traversing 2D Grid Path

I’m working on a top-down 2D game and am using the grid graph. I was experiencing some collider issues, and, upon further inspection, realized that the unit was “bouncing” heavily on the z-value.

Here’s a gif. Correct me if I’m wrong, but I don’t think this should be happening…


To me it doesn’t seem to bounce, it seems to converge on a z value of 0. Presumably because the graph has a z coordinate of 0.
Note that the z values it ends up at are veeery small (the e-06 or e-07 at the end means it uses scientific notation, so for example 1e-6 is actually 0.000001).

I see! I should have remembered that. I suppose I might have realized if I looked a little closer.

It is strange though, as clamping it to 0 seems to have fixed my issue. I did several other things though. I’ve already forgotten what exact steps I took, so it was very likely one of them that solved it before I realized it.

I appreciate the quick response!

1 Like