30 return (a + b) * 0.5f;
constexpr vector< T, N > max(const vector< T, N > &x, const vector< T, N > &y)
Returns a vector containing the maximum elements of two vectors.
constexpr vector< T, N > min(const vector< T, N > &x, const vector< T, N > &y)
Returns a vector containing the minimum elements of two vectors.
friction_combine_mode
Specifies how coefficients of friction should be calculated.
@ average
Coefficient of friction is calculated as (a + b) / 2.
@ minimum
Coefficient of friction is calculated as min(a, b).
float combine_friction(float a, float b, friction_combine_mode mode) noexcept
Combines two friction values into a coefficient of friction.