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

[WIP] set all raft positions to the center of the vehicle bounds #112

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

zolantris
Copy link
Owner

@zolantris zolantris commented Jul 7, 2024

Resolve #109. Likely fixes a bunch of annoyances with the raft ball spawning underground or in places it shouldn't be when physics are running.

This makes the raft ball always be the center of where all the pieces are placed. Prevents ZoneDesyncing or pieces from escaping from too far from center.

Feature Todos/Notes:

  • This likely will be a minor version change due to physics and raft behaviors changing.
  • This changeset will need to recalculate ALL pieces currently on the raft and then move the raft within the center convergence point. This means there needs to be a bounds change since the center point of the raft is not known until the first piece is added.
  • After the first piece, it can keep increasing the bounds based on the relative position of each piece. This means the logic for bounds must not use relative coordinates but the physical piece coordinates.
  • There may need to be a "freeze" for the raft where the raft does not apply physics until the bounds are draw. This may prevent issues where the raft could briefly bug out due to no colliders being in place.

@zolantris zolantris changed the title set all raft positions to the center of the vehicle bounds [WIP] set all raft positions to the center of the vehicle bounds Jul 28, 2024
@zolantris zolantris marked this pull request as draft September 5, 2024 19:29
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.

[feature] Add center syncing for the raft ball
1 participant