Contents
Class CameraKeyframeBuilder
java.lang.Object
com.hypixel.hytale.server.core.modules.camera.CameraKeyframeBuilder
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()depthOfField(DepthOfFieldSettings depthOfField) Sets a target depth-of-field band the camera eases to over the segment.fov(float fov) Sets a target FOV the camera eases to over the segment.look(Rotation3f look) Sets an explicit look direction.lookAt(org.joml.Vector3d lookAtPoint) Makes the keyframe look toward a fixed world point.position(org.joml.Vector3d position)
-
Constructor Details
-
CameraKeyframeBuilder
- Parameters:
duration- the time in seconds the camera takes to reach this keyframe from the previous one
-
-
Method Details
-
position
-
look
Sets an explicit look direction. Clears a previously set look-at point. -
lookAt
Makes the keyframe look toward a fixed world point. Clears a previously set look direction. -
fov
Sets a target FOV the camera eases to over the segment. -
depthOfField
Sets a target depth-of-field band the camera eases to over the segment. -
build
-