arcade-physics
Version:
Use Arcade Physics without Phaser.
15 lines • 648 B
TypeScript
export default RotateTo;
/**
* Rotates `currentAngle` towards `targetAngle`, taking the shortest rotation distance. The `lerp` argument is the amount to rotate by in this call.
*
* @function Phaser.Math.Angle.RotateTo
* @since 3.0.0
*
* @param {number} currentAngle - The current angle, in radians.
* @param {number} targetAngle - The target angle to rotate to, in radians.
* @param {number} [lerp=0.05] - The lerp value to add to the current angle.
*
* @return {number} The adjusted angle.
*/
declare function RotateTo(currentAngle: number, targetAngle: number, lerp?: number | undefined): number;
//# sourceMappingURL=RotateTo.d.ts.map