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

Fix player being unable to collide with Stations if only ship in Frame #5720

Merged
merged 1 commit into from
Jan 23, 2024

Conversation

sturnclaw
Copy link
Member

The CollisionSpace partition sort algorithm had a degenerate case where the contents of a single-element array would always be assigned to the disabled bucket, regardless of if it was enabled or not. This resulted in the player being unable to collide with any static Geom if it was the only active ship in the physics frame.

I've fixed that, and in the process made the sort algorithm a bit simpler.

Fixes #5705. Note that the saves linked in that issue are not compatible with the current master branch.

- Partition sort had a degenerate case where 1 element in the array would always be assigned to the disabled bucket, regardless of if it passed the partitioning test.
- The fix also makes the sort logic generally simpler as a side benefit.
@sturnclaw sturnclaw merged commit c747d5d into pioneerspacesim:master Jan 23, 2024
6 checks passed
@sturnclaw sturnclaw deleted the fix-starport-physics branch January 29, 2024 22:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Passing through landing pad during landing
1 participant