Transform.set_direction method
Rotates this Transform
so that
- its local
Y
-axis points towards the defineddirection
. - its local
Z
-axis points towards theworldUp
direction.
Note: The local Z
-axis always attempts to be perpendicular to Y
, which may lead to
worldUp
not always accurately pointed at.