bevy
bevy copied to clipboard
slerp functions for directions (Vec2 and Vec3)
What problem does this solve or what need does it fill?
Linear interpolation is unsuited for transitioning of directions.
What solution would you like?
I would like a spherical interpolation function (slerp) for Vec2 and Vec3 directions.
Additional context
This is a common feature in existing game engines: https://docs.godotengine.org/en/stable/classes/class_vector3.html#class-vector3-method-slerp https://docs.unity3d.com/ScriptReference/Vector3.Slerp.html