bevy icon indicating copy to clipboard operation
bevy copied to clipboard

slerp functions for directions (Vec2 and Vec3)

Open vveisard opened this issue 9 months ago • 2 comments

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

vveisard avatar May 17 '24 06:05 vveisard