mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2026-11-19 17:05:20 +08:00
ComputeDirection returned the escape heading of the first obstacle in the list whose path radius contains the mecha. A mecha standing on a moon close to its gas giant is inside two path radii at once (the moon's 2200 m and the giant's 2800 m), and the giant comes first. Taking off from the moon's giant-facing side, "away from the giant" points into the ground: the mecha dives right after entering space, drops back under the game's landing rule, takes off again, and so on. Sum the inward directions of all obstacles that contain the mecha, each weighted by how deep the mecha is inside it, and escape from that. The body right below dominates near its surface. Route blocking is checked only when the mecha is inside no obstacle, as before for a single obstacle. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>