Function Node2D.lookAt

Rotates the node so it points towards the point, which is expected to use global coordinates.

void lookAt (
  const(Vector2) point
) nothrow @nogc;