This simple happens because we tell it to move toward raycast hit of the floor, which then aligns the center of the robot body with the floor.
Another issue is the robot keeps "moving towards" the raycast hit even after it reached it. To test, in mid gameplay click a destination then once there, try to move the robot on the y axis and notice what happens.
a few dirty hacks:
mathf.clamp the y axis
move the center of the object
stuff like that.
I'd avoid using colliders as that might introduce other crap
This simple happens because we tell it to move toward raycast hit of the floor, which then aligns the center of the robot body with the floor.
Another issue is the robot keeps "moving towards" the raycast hit even after it reached it. To test, in mid gameplay click a destination then once there, try to move the robot on the y axis and notice what happens.
a few dirty hacks:
mathf.clamp the y axis move the center of the object stuff like that.
I'd avoid using colliders as that might introduce other crap