move point in direction angle
in
Programming Questions
•
2 years ago
here is a small part:
how can i move the windedX and windedY point the distance equal to moveDist according to the rotation?
(not with translate and rotate() cause the point will not be drawn yet).
- float power = rotor.power;
float moveDist = map(power, 0, 1, 0, 10);
float rotation = rotor.rotation;
windArrow.windedX += ?;
windArrow.windedY += ?;
how can i move the windedX and windedY point the distance equal to moveDist according to the rotation?
(not with translate and rotate() cause the point will not be drawn yet).
1