Character suddenly stop moving.
Hi, I have the problem when tried to make an endless runner game where I spawn each tiles to be a platform for player. The problem just barely occurred but the player sometimes stops moving suddenly though I never set player velocity to 0. Actually, I set the player velocity to equal (playerSpeed, rb2d.velocity.y). I've tested by print the rb2d.velocity.x in FixUpdate() but what I got is it print both playerSpeed and 0. Could anyone please help me figure this out or guide me how to debug this? Another question, is there anything that can cause the object's velocity to suddenly become 0?
Comment