Skip to main content
6 events
when toggle format what by license comment
Nov 4, 2024 at 20:16 comment added Chaos I worked around the exception due to t being 1.0. I simply copy the last rotation twice and force the interpolation to reach size() - 2.
Nov 4, 2024 at 0:10 comment added DMGregory The original code pinged my "fencepost error" spidey-sense. Interpolating a sequence of n quaternions is like building a fence with n posts. You need to join those posts with n - 1 spans. Your original mod code was using n in the denominator instead of n - 1. But since you'd already calculated both the continuous and integer parts of the progress value in earlier steps, we can extract our fractional progress to the next integer by just subtracting them, with no mod required.
Nov 3, 2024 at 22:37 comment added Chaos Now, I need to figure why it is working.
Nov 3, 2024 at 22:36 vote accept Chaos
Nov 3, 2024 at 22:36 comment added Chaos You did it! I removed the assertion and the interpolation is going smoothly! Accepted!
Nov 3, 2024 at 22:27 history answered DMGregory CC BY-SA 4.0