Click the green flag.
The red dot gets its y position set to cos(direction), the green dot gets its x position set to sin(direction).