velocityFromAngle
will return a FlxPoint
with the x and y velocity based on an angle and a speed.
Set an object’s velocity to these values to move that object (or use it for something else)
// determine the velocity based on angle and speed
velocity = FlxVelocity.velocityFromAngle(angle, speed);
Note: There is a simlar
accelerateFromAngle
function that will actually move an FlxSprite
based on an angle, acceleration, and maxSpeed.