Skip to content
ClassTweens & Motion@public

FlxCircularMotion ​

Motion around one complete circle. Angles are supplied in degrees.

ts
export declare class FlxCircularMotion extends FlxMotion

Properties ​

PropertyModifiersTypeDescription
angle-number-
circumference-number-

Methods ​

setMotion() ​

ts
setMotion(centerX: number, centerY: number, radius: number, angle: number, clockwise: boolean, durationOrSpeed?: number, useDuration?: boolean): this

Parameters:

ParameterTypeDescription
centerXnumber-
centerYnumber-
radiusnumber-
anglenumber-
clockwiseboolean-
durationOrSpeednumber-
useDurationboolean-

Returns: this

Released under the MIT License.