unascribed / Ears

Faithful fancy fashion features for fuzzy folk.
https://ears.unascribed.com
MIT License
91 stars 13 forks source link

Glitchy cape movement when boating #44

Open hibiii opened 2 years ago

hibiii commented 2 years ago

When riding a boat, the cape will start twitching very rapidly (perhaps every frame) and move very glitchedly. It's easy to achieve at high speeds like on blue ice, but I've managed to do it on normal water.

Tested on Fabric/1.17.1 and Fabric/1.18-pre5 on commit 5cacfd4.

unascribed commented 2 years ago

Only seems to happen if the ice road is long enough, so I suspect this is related to vanilla capping the cape delta and snapping it to the player position with no interpolation when it exceeds a certain distance.

I guess I could "fix" this by not relying on the vanilla cape code and implementing it all in Common; the NSSS port already contains a reimplementation of the cape position system...

unascribed commented 2 years ago

Yep. Reproduced with a vanilla cape.

hibiii commented 2 years ago

Perhaps I should have been clearer, side-by-side comparison on YouTube.

The vanilla cape movement is weird because it's clamped to its own detriment, but it's far from rapid and glitchy.

unascribed commented 2 years ago

Ah, weird. I was trying to reproduce this on a straight ice road (since it's easy to WE and I had no other detail)

hibiii commented 2 years ago

Are you lerping the movement by any chance? One of my mods, CapeTweaks, has an option to apply lerp on the cape angles and when I went boating with it turned on, the Vanilla cape went bonkers, much like in the video.

unascribed commented 2 years ago

Ears does lerp movement; I suppose that makes sense.