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

Inconsistent collision detection #23

Closed
marconett opened this issue Sep 9, 2020 · 5 comments
Closed

Inconsistent collision detection #23

marconett opened this issue Sep 9, 2020 · 5 comments

Comments

@marconett
Copy link

With moving platforms, collision detection can be very inconsistent, resulting the character moving into platforms and being warped out of platforms when collision is detected too late.

go1
go2

I played around with adding more rays, but that does only help a little:
g1
g2

Adding even more rays in between, the character get's caught up on platforms even easier.

@britzl britzl closed this as completed in 065aa08 Sep 12, 2020
@britzl
Copy link
Owner

britzl commented Sep 12, 2020

I pushed a new version with up-left and up-right raycasts which according to my own testing solves the problem. Please give it a try!

@marconett
Copy link
Author

Thank you!

The character now does not get caught on or clips into platforms when jumping at them from below. However, the issue seen in the very first gif and other similar ones are still present.

@britzl
Copy link
Owner

britzl commented Sep 14, 2020

However, the issue seen in the very first gif and other similar ones are still present.

This seems to happen when it is only the down-left/right ray that hits the platform right? At least that's what it looks like from the gif.

@marconett
Copy link
Author

This seems to happen when it is only the down-left/right ray that hits the platform right? At least that's what it looks like from the gif.

Yes, that seems to be the case. Here's a video with three different examples of this happening: https://www.youtube.com/watch?v=uHpuQ5_5ytQ

@britzl
Copy link
Owner

britzl commented Nov 12, 2020

I've fixed this last case now in the latest release

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