In this event i'm not getting what sin and cos doing.
Develop games in your browser. Powerful, performant & highly capable.
It basically means "move at angle"
So targetX and targetY coordinates will be set 2000px away from (startX, startY), at angle Player.Angle
Thankyou so much.