How do I make Polygon Collider 2D more smooth?
I am making a 2D skiing game, which requires the terrain to be as smooth as possible. I have drawn a simple slope in photoshop for testing, and given it a Polygon Collider 2D component. The Slope has a Physics Material 2D attached with Friction and Bounciness set to 0, as to make the slope as slippery as possible. I also have a simple player model, where the ski has a horizontal capsule collider, which is the one colliding with the terrain. The player of course also has a 2D rigidbody.
I tried fine-tuning the collider by deleting and adjusting vertices, as the collider details are a little rough, when the Polygon Collider is first attached. But when my player slides down the slope, It still stops abruptly at some points on the terrain, or make small Jumps or glitches. I tried downloading the Advanced Polygon Collider from the asset store: https://assetstore.unity.com/packages/tools/physics/advanced-polygon-collider-52265 Which gives you more control of the Polygon Collider. It helped a bit, but i still run into the same problems, depending on the rigidbody settings on my player. But when i adjust the rigidbody settings for that specific slope so it works, it doesn't work on other slopes i made. Also when i give my player some extra speed (Rigidbody.Addforce), the same problems occur. I am a little lost on what more i can do to make my slope more smooth to ride. I refuse to believe that I have to manually adjust the vertices for all slopes until it works out, because im not sure that it would help, and would result in a buggy finished product.
So my question is: How can i make my 2D terrain as smooth as possible for my player to ride, so the slope doesn't make my player stop abruptly or make small jumps? Seems like there are no answers on the internet regarding this topic, or i'm just really bad at researching. I basically just want my player to ride the slopes as smooth as Just Ski: https://www.youtube.com/watch?v=jAYitWt_mUk&ab_channel=U.Boztepe I have attached some photos of my game, to get a sense of what i'm trying to achieve.
Your answer
Follow this Question
Related Questions
Make Blocks stay in the grid 0 Answers
Setting points of edge collider 2D from script 0 Answers
Help with 2D topdown knockback 0 Answers
stick-figure piercing 0 Answers
What can I do to fix it? (Polygon Collisor shape equals shape sprite) 0 Answers