Transform.look_at method
Rotates this Transform so that the forward vector points to the target.
Note: By default, DX engine uses Y axis as forward vector.
Parameters
-
target: Vector3
point to look at.
Rotates this Transform so that the forward vector points to the target.
Note: By default, DX engine uses Y axis as forward vector.
point to look at.