Open treborjones81 opened 4 years ago
It's been away but should be related to the drag or the time before stop. Try reducing that number and see if it resolves the issue.
On Mon, Mar 2, 2020 at 10:50 AM treborjones81 notifications@github.com wrote:
Hi, really enjoying playing around with this, but alas my c-sharp skills are limited.
I was wondering if there's anyway to stop the player character sliding slowly when moving/landing on sloped surfaces. Or if there's a simple enough modification I could make to achieve such a result.
Currently if the character lands on a slope surface it slips down (and sometimes up!) - it looks like the change speed on slope settings are only influencing movement speeds when theres a player input.
Cheers for any help and thanks again for a great bit of kit! :-) Bob.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/cjddmut/Unity-2D-Platformer-Controller/issues/79?email_source=notifications&email_token=AAW4A3ZT3ILUVWOVAMRONPTRFP5WLA5CNFSM4K72KM7KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IRZGLAA, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAW4A3ZXRB3PMCBKXM67MC3RFP5WLANCNFSM4K72KM7A .
Thanks for getting back to me. I've played with it a bit and it seems to be related to having the Moving Platforms Layer set or not. If it's set the character slips down a slope, if its not ,it sticks as expected. Any ideas as to why this might be ? I've tried this in the example you supply, without any of my changes, and the issue is still present.
Appreciate you may have forgotten and moved on from this, so no worries if you're not sure.
Think I got it figured out now. It was linked to the Ground Check Distance under the slopes settings.
Hi, really enjoying playing around with this, but alas my c-sharp skills are limited.
I was wondering if there's anyway to stop the player character sliding on sloped surfaces when there's no input. Or if there's a simple enough modification I could make to achieve such a result.
Currently if the character lands on a sloped surface it slips down (and sometimes up!) - it looks like the 'change speed on slope' settings are only influencing movement speeds when theres a player input.
Cheers for any help and thanks again for a great bit of kit! :-) Bob.