#CharacterBody2D slides too much with friction set to 1
1 messages · Page 1 of 1 (latest)
I think you need friction on both sides for it to do anything
How to add friction to CharacterBody? Im using TileMap as a map so I can set friction in Physics properties but I can't seem to find where I can do it with CharacterBody
With move_and_slide the built-in friction doesn't do anything, because you're setting the velocity yourself
So it's up to you to use a lower velocity when you want the character to move slower
So I guess the best choice would be to lerp velocity to 0 after key was depressed
Right, that would be the equivalent of adding linear_damp to a RigidBody, like air resistance
I think it's more common with CharacterBody to just set the velocity to zero each frame, and rebuild it from scratch
For movement that's based on momentum, eventually you might want to consider limiting a RigidBody instead of building up a CharacterBody
Basically one starts with everything, and the other starts with nothing
And then you customize it to either add or take away behaviors
I was actually thinking because RigidBody seems more useful due to just being easier
Right, and the downside is that by default it will do a bunch of things you don't need or want