Package pi.animation
Class CircleAnimation
java.lang.Object
pi.event.AggregateFrameUpdateListener
pi.animation.CircleAnimation
- All Implemented Interfaces:
FrameUpdateListener,FrameUpdateListenerRegistration
Animiert einen Actor in einem Kreis.
- Author:
- Michael Andonie
-
Constructor Summary
ConstructorsConstructorDescriptionCircleAnimation(Actor actor, Vector rotationCenter, double durationInSeconds, boolean circleClockwise, boolean rotateActor) Erstellt eine Circle-Animation. -
Method Summary
Methods inherited from class pi.event.AggregateFrameUpdateListener
frameUpdateListeners, isPaused, onFrameUpdate, setPausedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface pi.event.FrameUpdateListenerRegistration
addFrameUpdateListener, defer, delay, removeFrameUpdateListener, repeat, repeat, repeat, repeat, repeat
-
Constructor Details
-
CircleAnimation
@API public CircleAnimation(Actor actor, Vector rotationCenter, double durationInSeconds, boolean circleClockwise, boolean rotateActor) Erstellt eine Circle-Animation. Animiert einActor-Objekt anhand seines Mittelpunkts um einen Drehungsmittelpunkt.- Parameters:
actor- Der zu animierende Actor.rotationCenter- Das Zentrum der Drehung.durationInSeconds- Die Dauer einer ganzen Umdrehung in Millisekunden.circleClockwise-true: Drehung im Uhrzeigersinn.false: Drehung entgegen des Uhrzeigersinns.rotateActor-true: Der Actor rotiert auch.false: Die Rotation des Actors bleibt fix. Nur seine Position verändert sich durch die Animation.
-