setCameraTargetCentered method
- Coordinates coords,
- Point3d pos
Set camera looking toward a target position, all in the coordinate system of the focused sphere.
Target coordinates are longitude, latitude position in degrees, with respect to the focused sphere surface, altitude in meters above the sphere (sea level).
The camera is centered on the target, at the specified distance in meters from the target, heading (0=N, 90=E, 180=S, 270=W) with respect to the focused sphere, and pitch (0=looking toward the target center from above the target, 90=looking at the target center from the horizontal plane/equator of the target, which is the plane containing the target forward and right vectors). The roll is always 0, so the horizon is level.
See generatePositionAndOrientationTargetCentered.
Parameters
- IN targetCoords Coordinates representing the desired latitude, longitude and altitude.
Throws
- An exception if it fails.
Implementation
void setCameraTargetCentered(final Coordinates coords, final Point3d pos) {
objectMethod(
_pointerId,
'MapCamera',
'setCameraTargetCentered',
args: <String, Object>{'coordinates': coords, 'tuple3D': pos},
);
}