Skip to content

Kaplay.Rotate

Modules

Comp

Values

addRotateComponent

addRotate(context, degrees) rotates a Game Object (in degrees).

let addRotate: (Kaplay.Context.t, float) => Kaplay.Types.comp
Parameters
float
Return type
addRotateByComponent

addRotateBy(context, degrees)

let addRotateBy: (Kaplay.Context.t, float) => Kaplay.Types.comp
Parameters
float
Return type
getAngle

getAngle in degrees

let getAngle: T.t => float
Parameters
T.t
Return type
float
rotateBy

rotateBy(t, degrees)

let rotateBy: (T.t, float) => unit
Parameters
T.t
float
Return type
unit
rotateTo

rotateTo(t, degrees) like directly calling setAngle

let rotateTo: (T.t, float) => unit
Parameters
T.t
float
Return type
unit
setAngle

setAngle in degrees

let setAngle: (T.t, float) => unit
Parameters
T.t
float
Return type
unit