velocityFromRotation(rotation, speed, point) → {Phaser.Point}
Given the rotation (in radians) and speed calculate the velocity and return it as a Point object, or set it to the given point object.One way to use this is: velocityFromRotation(rotation, 200, sprite.velocity) which will set the values directly to the sprites velocity and not create a new Point object.
Parameters
Name Type Argument Default Description rotation number The angle in radians. speed number <optional> 6