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

Collision detect is not right #14

Open
ghost opened this issue Mar 29, 2017 · 1 comment
Open

Collision detect is not right #14

ghost opened this issue Mar 29, 2017 · 1 comment

Comments

@ghost
Copy link

ghost commented Mar 29, 2017

untitled

@Falconerd
Copy link

Falconerd commented Apr 15, 2017

EDIT: Turns out #9 came to the same conclusion as below with sample code

You can fix this by casting more rays with horizontalRayCount in RaycastController.cs.

preview

However, this wouldn't be the solution I would use.

I would cast a ray from the bottom left corner directly to the right, traveling the length of the player - skinWidth.

If there is a hit and the object is within the bounds of the player, I'd move the player to the highest point of that object.

That's just an idea and untested. Perhaps there's a better way.

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

1 participant