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

Elevator glitch? #96

Open
rrctt2 opened this issue Mar 9, 2019 · 2 comments
Open

Elevator glitch? #96

rrctt2 opened this issue Mar 9, 2019 · 2 comments

Comments

@rrctt2
Copy link

rrctt2 commented Mar 9, 2019

I'm having a glitch with Tilemap Colliders where if the player gets "caught" on the edge of a tile, they will slowly start rising up to the closest surface.

Example can be found here: https://streamable.com/u9k8x

@louiidev
Copy link

louiidev commented Apr 5, 2019

I have noticed this issue as well, I thought I was doing something wrong. I didn't think about the tilemap collider could of been causing it.

@FBM2
Copy link

FBM2 commented Jul 31, 2019

Hey so I found a fix for this I was having the exact same issue. In the CharacterController2D script inside the method recalculateDistanceBetweenRays(), you can change (totalVerticalRays - 1) to just (totalVerticalRays). This worked for me and I haven't had any issues with it so far.

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

3 participants