-
Notifications
You must be signed in to change notification settings - Fork 253
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
Slope Transition Issue #4
Comments
I'm developing this tutorial more, fixing some bugs, can you please check if it still happens @ https://github.com/llafuente/unity-platformer |
did you ever figure out a solution for this? having the same exact issue, i know its been a long time :p |
Unfortunately no, I ended up going with a tile based approach like those mentioned in http://higherorderfun.com/blog/2012/05/20/the-guide-to-implementing-2d-platformers/ |
Just for anyone reading this in the future, i fixed this by adding an extra groundcheck below the players feet. if (!Physics2D.OverlapArea(leftFoot.position,rightFoot.position,obstaclesLayermask)) could probably do it better with raycasts,, im just happy my animations dont change for that 1 frame anymore :p |
First off, great tutorials!
Has anyone noticed any issues when transitioning between slopes and the
collisions
data? Specifically the status ofcollisions.below
?Using my own copy and the source code from the repo produces the same following results (watch the output of the Below box):
Scene Gif
Notice the quick switch between true/false? It's made it somewhat unreliable to use any animation states between grounded to falling. Any help is appreciated.
The text was updated successfully, but these errors were encountered: