You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using ' automatic_face_movement_dir' and 'automatic_face_movement_max_rotation_per_sec' we see smooth rotation in effect, but as soon as we use set_yaw on an entity it flips directly to that rotation instead of rotating smoothly.
Solutions
Have a toggle on set_yaw so that we can make use of smooth rotation in mods that doesn't break the existing api, e.g.
entity:set_yaw(yaw, [true for smooth rotation, false or nil to act normally])
Alternatives
We are already using an alternative in mobs redo api which is to manually rotate in steps to mimic smooth rotation, which works but isn't without it's glitches and lags.
Additional context
No response
The text was updated successfully, but these errors were encountered:
A bool alone would be insufficient. For properly configurable interpolation, you would want a number.
If you have a "root" bone, it should be possible to use that to interpolate the effective rotation of the model smoothly given the new bone override API: Do a relative, interpolated override on the root bone's rotation (assuming this feature works correctly, which it should, but which I'll look into since #14570 claims otherwise).
Perhaps something worth noting: set_rotation is already interpolated, it's just (1) slightly flawed (2) probably quicker than expected, modders would likely want this to be configurable.
Problem
When using ' automatic_face_movement_dir' and 'automatic_face_movement_max_rotation_per_sec' we see smooth rotation in effect, but as soon as we use set_yaw on an entity it flips directly to that rotation instead of rotating smoothly.
Solutions
Have a toggle on set_yaw so that we can make use of smooth rotation in mods that doesn't break the existing api, e.g.
entity:set_yaw(yaw, [true for smooth rotation, false or nil to act normally])
Alternatives
We are already using an alternative in mobs redo api which is to manually rotate in steps to mimic smooth rotation, which works but isn't without it's glitches and lags.
Additional context
No response
The text was updated successfully, but these errors were encountered: