Package com.simsilica.lemur.anim
Class CameraTweens
java.lang.Object
com.simsilica.lemur.anim.CameraTweens
Static utility methods for creating common Camera-related Tween objects.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Tween
Creates a tween that will interpolate the location of the specified camera from one location to another.static Tween
Creates a tween that will interpolate the location of the specified target from one location to another.static Tween
rotate
(Camera target, Quaternion from, Quaternion to, double length) Creates a tween that will interpolate the rotation of the specified target from one rotation to another.
-
Constructor Details
-
CameraTweens
public CameraTweens()
-
-
Method Details
-
move
Creates a tween that will interpolate the location of the specified camera from one location to another. If either location is null then they will be substituted with the Camera's current local translation AT THE TIME OF THIS CALL. This method will use the distance between the two locations as the tween length. This makes it easier to create a sequence of movements that all move at the same speed. The overall sequence can always be rescaled to fit whatever outer time constraints required. -
move
Creates a tween that will interpolate the location of the specified target from one location to another. If either location is null then they will be substituted with the Camera's current local translation AT THE TIME OF THIS CALL. -
rotate
Creates a tween that will interpolate the rotation of the specified target from one rotation to another. If either rotation is null then they will be substituted with the Camera's current local rotation AT THE TIME OF THIS CALL.
-