From 3a0a27c4a76057af6afcb1caa6ab709c4093ab4f Mon Sep 17 00:00:00 2001 From: Daniel Lovell Date: Wed, 25 Sep 2024 20:09:19 -0700 Subject: [PATCH 1/2] Add docs/Simulation_Logging.md --- docs/Simulation_Logging.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 docs/Simulation_Logging.md diff --git a/docs/Simulation_Logging.md b/docs/Simulation_Logging.md new file mode 100644 index 0000000..ed07254 --- /dev/null +++ b/docs/Simulation_Logging.md @@ -0,0 +1,12 @@ +# Simulation Logging + +Logs are exported to the `Telemetry/Logs` folder in your operating system's [persistent data path](https://docs.unity3d.com/ScriptReference/Application-persistentDataPath.html). + +For example, on Windows, the logs will be exported to +`C:\Users\\AppData\LocalLow\BAMLAB\micromissiles\Telemetry`. + +On MacOS, the logs will be exported to +`~/Library/Application Support/BAMLAB/micromissiles/Telemetry`. + + + From f15ab478422769b910cb12eeb2b873d4362b5934 Mon Sep 17 00:00:00 2001 From: Titan Yuan Date: Fri, 27 Sep 2024 10:50:50 -0700 Subject: [PATCH 2/2] Calculate lift-induced drag from gravity --- Assets/Scripts/Interceptor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Scripts/Interceptor.cs b/Assets/Scripts/Interceptor.cs index cffcf84..71ba687 100644 --- a/Assets/Scripts/Interceptor.cs +++ b/Assets/Scripts/Interceptor.cs @@ -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