Skip to content

[FIX] Reimplement boat gravity#988

Merged
codeHusky merged 1 commit intosmartcmd:mainfrom
MozzarellaRat:dev-boat-gravity
Mar 9, 2026
Merged

[FIX] Reimplement boat gravity#988
codeHusky merged 1 commit intosmartcmd:mainfrom
MozzarellaRat:dev-boat-gravity

Conversation

@MozzarellaRat
Copy link
Contributor

@MozzarellaRat MozzarellaRat commented Mar 9, 2026

Description

This commit reimplements boat gravity. Which was removed in #615, readded by #651, then removed in #906 (??)

Changes

(Somewhat) reimplement changes made in my previous pull request, #651.

Previous Behavior

Boats may glitch into ground on ride.
Boats would create splash particles in any environment, depending on speed.
Rider floats above the boat

image image

Root Cause

PR #651 was reverted.

New Behavior

  • Boats no longer fall through some material on being ridden.
  • Boats no longer create splash particles in non-water environments
  • Riders now sit closer to the boat to so that they are not floating above

Related Issues

Video of what gravity should now look like:
https://github.com/user-attachments/assets/10162dc1-9fcb-4bd4-b846-37ee2fbccb6d
*This video was filmed for #651, if it was filmed in this commit the player would sit 0.1 above where they were in the video. Everything else should be the same.

Hey, its 100% okay that #651 was reverted, but I didn't see any comment about it being reverted. I assume it was a mistake. If it wasn't a mistake, then just reject this pr.

@codeHusky
Copy link
Collaborator

codeHusky commented Mar 9, 2026

Wdym by "somewhat" here

(Somewhat) reimplement changes made in my previous pull request, #651.

@MozzarellaRat
Copy link
Contributor Author

MozzarellaRat commented Mar 9, 2026

Wdym by "somewhat" here

(Somewhat) reimplement changes made in my previous pull request, #651.

I changed the way I implemented a few things, and my formatting. The footnote for the video also describes a change from the original code, which was the height the player sits at in the boat. It was given an offset of -0.4 instead of -0.5. This change was to stop the player from colliding with the block underneath the boat. If you look at the video the player model is slightly darkened while on land, this is the reason that value was changed.

When I say I changed the way I implemented things I mostly mean how I set the initial height for the boat. Instead of setting it in the boat constructor I set it in the _init() function. There are probably differences in formatting, I didn't just copy and paste the old code in since I wanted to redo it. But the outcome should be the same.

@codeHusky codeHusky merged commit 42164ee into smartcmd:main Mar 9, 2026
1 check passed
piebotc pushed a commit to piebotc/LegacyEvolved that referenced this pull request Mar 9, 2026
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.

Boats fall underground...

2 participants