Component_RotateAnimation Class
Executes a rotate-animation on a game-object.
Item Index
Methods
Methods
rotateTo
(
-
angle -
duration -
easingType -
[callback]
Starts the rotate-animation.
Parameters:
-
angleNumberThe target angle
-
durationNumberThe duration in frames.
-
easingTypeObjectThe easing-type.
-
[callback]Function optionalAn optional callback called if the animation is finished.
skip
()
Skips the animation. That is used to skip an animation if the user wants to skip very fast through a visual novel scene.
start
(
-
direction -
speed -
duration -
easingType -
[callback]
Starts the rotate-animation.
Parameters:
-
directiongs.RotationDirectionThe rotation direction.
-
speedNumberThe rotation speed in degrees per frame.
-
durationNumberThe duration in frames.
-
easingTypeObjectThe easing-type.
-
[callback]Function optionalAn optional callback called if the animation is finished.
toDataBundle
()
Serializes the rotate-animation into a data-bundle.
update
()
Updates the rotate-animation.
