Closed Cooliokid956 closed 1 month ago
..oh... I think I see why they were made floats
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 float
s was because the internal rotation function used (guRotate
) works with degrees instead of SM64 units.. using int
s instead led to jitter at low angular velocities, but that's been fixed now. They are back to using float
s as they should.
This Pull Request is ready for merging
A new function,
djui_hud_set_rotation_interpolated
, has been added, which allows rotation and pivot point interpolation for interpolated DJUI elements. The function takess32
s for the angles instead ofs16
s to allow for wide rotations.