Merge branch 'master' of https://github.com/PisterLab/micromissiles-unity into more-targets

more-targets
turtlebasket 2024-09-27 16:47:37 -07:00
commit d9b289d2cf
1 changed files with 1 additions and 1 deletions

View File

@ -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