Nerf glider AR

This commit is contained in:
juliancoffee 2024-02-01 18:16:26 +02:00
parent 9ac75cb7d1
commit cd9e5bb9c9

View File

@ -26,10 +26,30 @@ impl From<&JoinData<'_>> for Data {
Self {
// Aspect ratio is what really matters for lift/drag ratio
// and the aerodynamics model works for ARs up to 25.
//
// The inflated dimensions are hopefully only a temporary
// bandaid for the poor glide ratio experienced under 2.5G.
//
// The formula is:
// s: span_length_modifier
// c: chord_length_modifier
// h: height (this is a hack to balance different races)
//
// p_a = Pi/4 * c * h * s * h
// AR
// = (s * h)^2 / p_a
// = (s * h)^2 / (Pi / 4 * (c * h) * (s * h))
// = (s * h) / (c * h) / (Pi / 4)
// = s / c / Pi/4
//
// or if c is 1,
// = s / Pi/4
//
// In other words, the bigger `span_length` the better.
//
// A span/chord ratio of 4.5 gives an AR of ~5.73.
span_length: scale * 4.5,
// A span/chord ratio of 3.0 gives an ARI of ~3.82.
span_length: scale * 3.0,
chord_length: scale,
ori: *data.ori,
}