Contents

SushiEngine

travel_arrival

TravelArrival travel_arrival(const Vector3 &fill_viewpoint, const Vector3 &direction, Scalar distance_metres, const Vector3 &sun_direction, const Vector3 &pole, Scalar body_radius, Scalar field_of_view_radians, Scalar stand_off_radii=TRAVEL_STAND_OFF_RADII) noexcept

Parameters

NameTypeDescription
fill_viewpointconst Vector3 &

The viewpoint the sky was filled from, not the camera's current position.

directionconst Vector3 &
distance_metresScalar
sun_directionconst Vector3 &
poleconst Vector3 &
body_radiusScalar
field_of_view_radiansScalar
stand_off_radiiScalar

Returns

TravelArrival

Description

Resolves a travel destination from one frame's sky: where to land and what to face.

See also

engine/foundation/core/include/README.md