-
-
Notifications
You must be signed in to change notification settings - Fork 495
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
Update collision.cpp #3096
base: master
Are you sure you want to change the base?
Update collision.cpp #3096
Conversation
Fix ceiling slope hang so which was fixed by others too.However,Ensure that the code is consistent in determining the validity of the p1 coordinate relative to the area range
@SuperTux/developers I'm not too familiar with our collision system. Will changing rdelta negatively affect anything else? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like this PR does the exact same as #3057 and iirc it didn't work out.
This time, the depth detection logic has been modified to reduce the offset value appropriately so that the player can move more smoothly when close to the ceiling Also, adjusted the constraints to add additional handling of top collisions to make sure players don't stay in the ceiling area Hope this time everything will be fine
I reworked it and was able to implement it locally, so hopefully it will be useful for the main supertux branch! |
i'll hold off on approving until it's fully fixed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure what to do about this. I don't think changing hacky values is the way to go here, especially when I'm currently rewriting this function (#3140)
Fix ceiling slope hang so which was fixed by others too.However,Ensure that the code is consistent in determining the validity of the p1 coordinate relative to the area range