I first used the way that: 1. getting position of object 2. According to the Input increase or decrease the position. 3. Apply new position to object. But sometimes it stucks in wall. If I use character controller. Physics crash sometimes.
I first used the way that: 1. getting position of object 2. According to the Input increase or decrease the position. 3. Apply new position to object. But sometimes it stucks in wall. If I use character controller. Physics crash sometimes.
You’re basically teleporting a character each frame so as I told above, just use rb.velocity