Free Camera Options
class FreeCameraOptions
Content copied to clipboard
Various options for accessing physical properties of the underlying camera entity. A direct access to these properties allows more flexible and precise controlling of the camera while also being fully compatible and interchangeable with CameraOptions. All fields are optional.
Functions
get Orientation
Link copied to clipboard
Get the orientation of the camera represented as a unit quaternion [x, y, z, w].
get Position
Link copied to clipboard
Get the position of the camera in slightly modified web mercator coordinates - The size of 1 unit is the width of the projected world instead of the "mercator meter".
look At Point
Link copied to clipboard
open fun lookAtPoint(@NonNull location: Point, altitude: Double, @NonNull upVector: Vec3)
Content copied to clipboard
Helper function for setting orientation of the camera by defining a focus point.
set Location
Link copied to clipboard
Helper function for setting the mercator position as Lat&Lng and altitude in meters
set Orientation
Link copied to clipboard
Set the orientation of the camera represented as a unit quaternion [x, y, z, w].
set Pitch Bearing
Link copied to clipboard
Helper function for setting the orientation of the camera as a pitch and a bearing.
set Position
Link copied to clipboard
Set the position of the camera in slightly modified web mercator coordinates - The size of 1 unit is the width of the projected world instead of the "mercator meter".