Jump to content

[1.11] Smoothing Entity Movement


BeardlessBrady

Recommended Posts

So I'm working on a horse cart that follows the horse as it moves (obviously) Although Im having alot of trouble on getting the movement smooth and correct.

 

Here is where I handle the entity movement: https://github.com/BeardlessBrady/Carts-Mod/blob/master/src/main/java/gunn/modcarts/mod/entity/EntityHorseCart.java#L58

Representation of weirdness: https://gfycat.com/HighDeadGoral

 

Link to comment
Share on other sites

Slightly confused here. This is changed when the player right clicks the cart well on a horse, does that not effect both client and server?

 

EDIT: So I tested to see if when there is an attached entity the isAttached method returns true. It returns true for both client and server so not sure whats causing the choppy movement

Edited by BeardlessBrady
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.