Merge branch 'master' of https://github.com/PisterLab/micromissiles-unity into more-targets
commit
d9b289d2cf
|
@ -62,7 +62,7 @@ public class Interceptor : Agent {
|
||||||
}
|
}
|
||||||
|
|
||||||
float airDrag = CalculateDrag();
|
float airDrag = CalculateDrag();
|
||||||
float liftInducedDrag = CalculateLiftInducedDrag(accelerationInput);
|
float liftInducedDrag = CalculateLiftInducedDrag(accelerationInput + gravity);
|
||||||
float dragAcceleration = -(airDrag + liftInducedDrag);
|
float dragAcceleration = -(airDrag + liftInducedDrag);
|
||||||
|
|
||||||
// Project the drag acceleration onto the forward direction
|
// Project the drag acceleration onto the forward direction
|
||||||
|
|
Loading…
Reference in New Issue