surface_levelling_weight
Scalar surface_levelling_weight(Scalar surface_distance, Scalar body_radius, Scalar field_of_view_radians) noexceptParameters
| Name | Type |
|---|---|
surface_distance | Scalar |
body_radius | Scalar |
field_of_view_radians | Scalar |
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

