When I click play the Player went up / Player Collusion

Hi! I’ve just started to learn unity 3 and currently Im at the second section

When i click play, I’ve notice that my Player went up a little. Even there isnt an object there.
GifMaker_20210829194918131
sorry for the gif quality

The player:

The Floor/grass:

The player only has 1 script, here

Can anyone tell me what’s going on?

Apparently there’s an invisible object in the players position. Check every object and see if there’s one with a collider that shouldn’t have.

Hi Fadkli,

For testing purposes, comment out the line with yValue, then create a new variable named yValue and set it to 0f. Then run your game. Does the issue persist?

This topic was automatically closed after 5 days. New replies are no longer allowed.

Privacy & Terms