coop-deluxe / sm64coopdx

An official continuation of https://github.com/djoslin0/sm64ex-coop on sm64coopdx for the enhancements and progress it already has.
https://sm64coopdx.com
286 stars 41 forks source link

Add rotation interpolation #208

Closed Cooliokid956 closed 1 month ago

Cooliokid956 commented 1 month ago

A new function, djui_hud_set_rotation_interpolated, has been added, which allows rotation and pivot point interpolation for interpolated DJUI elements. The function takes s32s for the angles instead of s16s to allow for wide rotations.

Cooliokid956 commented 1 month ago

..oh... I think I see why they were made floats

Cooliokid956 commented 1 month ago

its interesting that peachy made rotation a float, but it doesn't seem to be necessary because of the format of sm64 angles...

The reason that the angles were made floats was because the internal rotation function used (guRotate) works with degrees instead of SM64 units.. using ints instead led to jitter at low angular velocities, but that's been fixed now. They are back to using floats as they should.

This Pull Request is ready for merging