I have made a basic character controller to avoid the use of the standard one since it doesn’t quite fit my needs. I use MovePosition to move my character but when i push into a wall my character jitters. Shouldn’t using MovePosition prevent this? I have a collider on both the wall and player, a rigidbody on both with the wall set to kinematic, and interpolation set to Continuous Dynamic on both. What could be causing this jittering?
Code:
https://pastebin.com/PJjFFxwH
Jittery motion tends to happen when you’re moving physics objects from within Update().
This happens because the engine doesn’t stop you from moving something from within Update(), but it calculates collisions during the FixedUpdate() cycle and doesn’t allow physics bodies to be within each other.
Try changing Update() to FixedUpdate() to make those movements happen on the physics update cycle. You might need to have your inputs still happen within the normal Update() if those start to seem sluggish.