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
There were two issues, one with vectors where the dot product is slightly beyond the range of acos, the other when the angle is 0 and we divide by it, both of which have been fixed and don't add that much cost.
After reading further about slerp I realized that most people seem to use a normalized lerp they call nlerp which has different properties but is a lot faster. If this is useful to you and you want to give it a go, there's an nlerp function now. I've also kept lerp in case you want to lerp multiple times, then normalize at the end which is the same as calling nlerp multiple times but is faster.
Found that slerp can sometimes return nan values, caused by a division by 0 in the implementation.
To replicate:
The text was updated successfully, but these errors were encountered: