UNITY Get Quaterion to rotate towards Object
How do I get (return type) a quaternion to rotate towards an object
4 Replies
Quaternion Struct (System.Numerics)
Represents a vector that is used to encode three-dimensional physical rotations.
Is this what you were looking for?
be more specific, do you want a quarternion that when applied to what will rotate towards an object
the world forward vector? a specific forward vector?
Like Slerp said, its more dependent on what you're trying to do, but I guess you could do something like
or
but without unity in front on me to check those, I'm not 100% they're exactly what you want