- Home /
Question by
suIly · Dec 12, 2020 at 05:37 PM ·
movementrigidbody2dplatformerslopes
Rigidbody2D jumping off of slopes
Hello, I'm making a 2D platformer, and my tileset contains 45 degree angle slopes. I made my character's child gameobject, the graphics, rotate in the direction of the slopes, so the main parent collider doesn't rotate. However, when I try to go up slopes and the slope stops, the rigidbody jumps for some reason. It doesn't stick to the ground. Why is this happening? I followed this tutorial to deal with slopes. It doesn't work completely though. I can travel along the same slope without jumping, but when I move onto a different slope, it jumps!
See this video: Video
Thanks for your time, Sully
Comment
I want the character to stick smoothly to the slope even when it changes