Calculate lift-induced drag from gravity
parent
3a0a27c4a7
commit
f15ab47842
|
@ -62,7 +62,7 @@ public class Interceptor : Agent {
|
|||
}
|
||||
|
||||
float airDrag = CalculateDrag();
|
||||
float liftInducedDrag = CalculateLiftInducedDrag(accelerationInput);
|
||||
float liftInducedDrag = CalculateLiftInducedDrag(accelerationInput + gravity);
|
||||
float dragAcceleration = -(airDrag + liftInducedDrag);
|
||||
|
||||
// Project the drag acceleration onto the forward direction
|
||||
|
|
Loading…
Reference in New Issue