Annoying little wall bounce

So when I run into a wall in my 2d platformer game, it kind of bounces off the wall before going back to it. This is a problem because it might clash with my wall jump script and overall makes the game less smooth.

Example:
https://gyazo.com/d851322ec3caf0928e8635a74da8780d
As you can see, right after the character hits the wall, it bounces a little before hitting the wall again. Is there any feature to disable this or code to counteract this?

1 Like

There are two possibilities for what this could be:

  • Physics collisions
  • Animation collisions

For physics collisions, you can reduce the Elasticity of the parts to 0 and increase the ElasticityWeight of the parts to 100. This would require you creating a custom character. The other possibility if this doesn’t work is to change the density of the parts in the custom character to something much higher, although this may make other gameplay elements a bit more difficult.

For animation collisions, the only real way to do anything is to make your own new ones which don’t collide. I’d recommend testing to see if it is this first and then go from there - do this by placing an empty LocalScript called “Animate” in StarterCharacterScripts

Hope this helps.

2 Likes

turning the elasticity to 0 worked perfectly, thank you!

3 Likes