Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No slip on sloped surfaces #79

Open
treborjones81 opened this issue Mar 2, 2020 · 3 comments
Open

No slip on sloped surfaces #79

treborjones81 opened this issue Mar 2, 2020 · 3 comments

Comments

@treborjones81
Copy link

treborjones81 commented Mar 2, 2020

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.

@cjddmut
Copy link
Owner

cjddmut commented Mar 2, 2020 via email

@treborjones81
Copy link
Author

treborjones81 commented Mar 2, 2020

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.

@treborjones81
Copy link
Author

Think I got it figured out now. It was linked to the Ground Check Distance under the slopes settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants