How to rotate an object to a direction(vector), not around an axis?

Rotate an object to a direction(vector). The vector is known.

Hi, use Object3D.lookAt() :

.lookAt ( vector : Vector3 ) : null
.lookAt ( x : Float, y : Float, z : Float ) : null

from the doc

1 Like