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

Carts: Improve movement behaviour #2951

Merged
merged 2 commits into from
May 9, 2022
Merged

Carts: Improve movement behaviour #2951

merged 2 commits into from
May 9, 2022

Conversation

SmallJoker
Copy link
Member

@SmallJoker SmallJoker commented May 6, 2022

Backported various changes from boost_cart
Improved direction handling and code cleanup
Smoothed-out 'end of rail' animation

Partial fix for #2948 - the cart is now stopping in a horizontal direction. The problem here is that the next node (after downhill turn-back) is on the same Y level as the cart, hence there's straight rail friction which makes the cart stop immediately.

This far from perfect but aimed to provide at least a little bit better experience until a bullet-proof solution is found.

Backported various changes from boost_cart
Improved direction handling and code cleanup
Smoothed-out 'end of rail' animation
@SmallJoker SmallJoker force-pushed the carts_maintenance branch from a924bb1 to 5c5bb5c Compare May 6, 2022 18:17
Copy link
Contributor

@appgurueu appgurueu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From a quick glance the code looks fine to me. Cart movement works fine. The horizontal direction is preferable over the current bug; ideally the cart should roll down if possible (or be rotated properly), but that should be left to a later PR after cart rotation has been cleaned up.

@SmallJoker SmallJoker merged commit 38307da into master May 9, 2022
@appgurueu appgurueu deleted the carts_maintenance branch May 10, 2022 12:20
Wuzzy2 pushed a commit to Wuzzy2/minetest_game that referenced this pull request Jul 22, 2022
Backported various changes from boost_cart
Improved direction handling and code cleanup
Smoothed-out 'end of rail' animation
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.

2 participants