Contents

SushiEngine

surface_levelling_weight

Scalar surface_levelling_weight(Scalar surface_distance, Scalar body_radius, Scalar field_of_view_radians) noexcept

Parameters

NameType
surface_distanceScalar
body_radiusScalar
field_of_view_radiansScalar

Returns

Scalar

A weight in [0, 1] to scale the levelling rotation by.

Description

Returns how much of the local vertical a camera at this height is locked to.

See also

engine/foundation/core/include/README.md