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

Emulate client side vehicle movement #4648

Open
wants to merge 25 commits into
base: dev
Choose a base branch
from

Conversation

AJ-Ferguson
Copy link
Member

@AJ-Ferguson AJ-Ferguson commented May 8, 2024

This PR adds support for vehicles that are controlled by the client (Camel, Strider, Pig).

Movement should be extremely close to a real java client, and many situations are accurately handled such as fluid, slime and honey blocks, climbing, etc.

Todo

  • Pistons
  • Tick vehicle boost if any player is controlling

@Kas-tle Kas-tle added the PR: Needs Testing When a PR needs testing but is currently not under review label May 8, 2024

Vector2f getAdjustedInput(Vector2f input);

boolean isLogicalSideForUpdatingMovement();
Copy link
Member

Choose a reason for hiding this comment

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

I know this is a method name pulled from NMS, but I'm not a huge fan of the naming. The name doesn't line up very well with what the method actually checks for.

Copy link
Member

Choose a reason for hiding this comment

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

maybe isClientControlled() (or similar)?

Copy link
Member Author

Choose a reason for hiding this comment

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

I agree the name isn't great. Chris' suggestion sounds good to me so I used that for now

@AJ-Ferguson AJ-Ferguson changed the base branch from master to dev May 17, 2024 20:44
@AJ-Ferguson AJ-Ferguson marked this pull request as ready for review May 24, 2024 00:19
@AJ-Ferguson AJ-Ferguson added the PR: Needs review Indicates that a PR is functional and review-ready. label May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: Needs review Indicates that a PR is functional and review-ready. PR: Needs Testing When a PR needs testing but is currently not under review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't move mounted entities with carrot/warped fungus on a stick
5 participants