Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2e1a1d57 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Avoid accumulating too many flags on single-body systems." into main

parents 0a0d7866 f1c52fa7
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -21,7 +21,8 @@ import kotlin.math.sign

class Autopilot(val ship: Spacecraft, val universe: Universe) : Entity {
    val BRAKING_TIME = 5f
    val SIGHTSEEING_TIME = 10f
    val SIGHTSEEING_TIME = 15f
    val LAUNCH_THRUST_TIME = 5f
    val STRATEGY_MIN_TIME = 0.5f

    var enabled = false
@@ -73,7 +74,7 @@ class Autopilot(val ship: Spacecraft, val universe: Universe) : Entity {

                strategy = "LAUNCHING"
                debug = ""
                nextStrategyTime = sim.now + 2f
                nextStrategyTime = sim.now + LAUNCH_THRUST_TIME
            }
        } else {
            // select new target
+1 −1
Original line number Diff line number Diff line
@@ -43,7 +43,7 @@ const val CRAFT_SPEED_LIMIT = 5_000f
const val MAIN_ENGINE_ACCEL = 1000f // thrust effect, pixels per second squared
const val LAUNCH_MECO = 2f // how long to suspend gravity when launching

const val LANDING_REMOVAL_TIME = 3600f // one hour of simulation time
const val LANDING_REMOVAL_TIME = 60 * 15f // 15 min of simulation time

const val SCALED_THRUST = true