Hello!
I have a problem with getting stable motion of a player sliding fast down the curved slope. The scene is simple:
- rectangle with Capsule2D collider, rigidbody with mass of 50
- side view
- curved slope, with about 100m height and width with Edge 2D collider
- gravity is defaulted at -9.81 in Y
- player has only gravity affecting him for the moment
What i want to achieve: making a smooth slide from the slope gaining speed in a fairly realistic manner like one would using a sled on a snowy hill (like Ski Safari for example).
What is wrong: during the slide, the player gains speed but bumps along the surface, sometimes even jumps. Clearly it's not a smooth slide down the hill as I hoped.
Things i've tried:
1. Setting physics material of both elements to 0 friction and bounciness 0, and combinations
2. Increasing velocity/position iterations in Phys2d Settings
3. I've played a bit with creating the slope itself - one version is a mesh in fbx with fairly densely hand-placed points of Edge2D collider, the other is rendering the mesh in a 3d program (with resolution 2k) to a sprite - so Unity can auto-trace the polygon collider.
4. Playing with Edge2D collider settings
Also, it's going to be a mobile game so i cannot bump physics too much.
Could someone nudge me to a right direction, maybe? :)
Cheers!
Wojtek
↧