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

Clean up KCL collision functions #74

Merged
merged 1 commit into from
May 4, 2024
Merged

Conversation

malleoz
Copy link
Contributor

@malleoz malleoz commented May 1, 2024

Right now (and by right now I mean in a future PR where we sync rBC), we make use of three sphere collision check functions. They are 95% the same, differing only by certain if-statements based on the TYPE of check performed (at least colliding with an edge, colliding beyond the edge, and colliding while moving towards).

The functions are ugly in Ghidra. Keeping them separate in Kinoko does not make debugging any easier (from a LOT of experience). I will argue that conjoining them here helps readability, as we can distinguish between what types of checks are being performed on a given collision check.

@malleoz
Copy link
Contributor Author

malleoz commented May 4, 2024

Updated to include a small desync that becomes obvious during Mario Circuit's RTA World Record.

@vabold vabold merged commit dd54672 into vabold:main May 4, 2024
4 checks passed
@malleoz malleoz deleted the kcl_cleanup branch May 11, 2024 17:23
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

Successfully merging this pull request may close these issues.

2 participants