Transform.Scale Problem about the Getting Started Tutorial

I find that if I set the transform.scale of the “Cylinder” object to (0.2,0.2,0.2) and run the project, its position.y will keep increasing.

How can I fix this bug?

Hi

The AIPath script uses a raycast to determine where the ground is. You have the ‘Raycast Ground Mask’ set to ‘Everything’ which includes the agent itself. So if the raycast starts above the character’s collider it will hit itself and try to stand on its own head. To solve this, move the character to a separate layer and remove that layer from the ‘Raycast Ground Mask’ layer mask.

Thanks for your help! The problem has been solved.