Class CameraTweens

java.lang.Object
com.simsilica.lemur.anim.CameraTweens

public class CameraTweens extends Object
Static utility methods for creating common Camera-related Tween objects.
  • Constructor Details

    • CameraTweens

      public CameraTweens()
  • Method Details

    • move

      public static Tween move(Camera target, Vector3f from, Vector3f to)
      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

      public static Tween move(Camera target, Vector3f from, Vector3f to, double length)
      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

      public 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. If either rotation is null then they will be substituted with the Camera's current local rotation AT THE TIME OF THIS CALL.