private void applyCinematicEffect() {
previousPositions.addFirst(new Vector3f(position));
previousViewingDirections.addFirst(new Vector3f(viewingDirection));
CameraSetting cameraSetting = cameraSettings.getCameraSetting();
while (previousPositions.size() > cameraSetting.getSmoothingFrames()) {
previousPositions.removeLast();
previousViewingDirections.removeLast();
}
position.set(calculateVector(previousPositions));