Transform.look_at method

look_at(self, world_position: Vector3) -> Transform:

Rotates this Transform so that the forward vector points to the worldPosition.

Note: By default, DX engine uses Y axis as forward vector.

Parameters

  • world_position: Vector3

    point to look at.

Returns