Class CameraKeyframeBuilder

java.lang.Object
com.hypixel.hytale.server.core.modules.camera.CameraKeyframeBuilder

public class CameraKeyframeBuilder extends Object
Fluent builder for a single CameraKeyframe, for use with CameraSequenceBuilder.keyframe(CameraKeyframeBuilder). Every field beyond the constructor is optional: an unset position or look inherits from the previous keyframe (the sequence start pose for the first keyframe), an unset FOV resolves to the sequence base FOV, and an unset depth-of-field band inherits the previous keyframe's band.
  • Constructor Details

    • CameraKeyframeBuilder

      public CameraKeyframeBuilder(float duration, @Nonnull EasingType easing)
      Parameters:
      duration - the time in seconds the camera takes to reach this keyframe from the previous one
  • Method Details