Flame(Flutter game) Angle of a Vector, Anchor(logical center)
Table of contents
v1.angleToSigned(v2)
angleA = v1.angleToSigned(v2)
v2
^
/
/
/ angleA
---->v1
How do I rotate at a certain speed?
We use the dt
-delta time, in the update
method.
angleDelta = dt * rotationSpeed;
angle = (angle + angleDelta) % (2 * pi);