moveForward method

Camera moveForward({
  1. required double distance,
})

Creates a copy of the camera moved by the specified distance in the direction it is facing.

Parameters:

  • distance — The distance in meters that the returned camera will move in the direction the camera is facing.

Return Value: A copy of the camera with the position moved.