3d equivalent of vector.angle

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By fuck

Why doesn’t it exist? What is a way to find it?

:bust_in_silhouette: Reply From: kidscancode

3D does not work like 2D does. In 2D there is only one axis of rotation, so a single angle can represent a direction. In 3D there are 3 axes of rotation, and specifying them as angles leads to problems like gimbal lock.

There is this, if you need to find the angle between two vectors (2 vectors define a plane, so this is equivalent to 2D):

:bust_in_silhouette: Reply From: Didiei

You can sort of simulate by using angle_to(some_direction).