My original question with some code which I made so far https://godotforums.org/discussion/29532/rotate-sprite-and-move-to-mouse-click-position-2d#latest
I have a sprite, I click somewhere and I want that sprite rotate to mouse click position and move there.
Code which perform correct moving but without rotation:
target_pos = target
angle_to_target = target_pos.angle()
velocity = Vector2(speed, 0).rotated(angle_to_target)
If I add property rotation and set its value - eveything becomes chaotic, random moves, rotations, etc.
What's wrong with my calculations and how to use properly godot features?