We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9495219 commit 1456beaCopy full SHA for 1456bea
src/Starlight/Integration.hs
@@ -246,7 +246,7 @@ runAction dt system c = \case
246
desiredAngle c t = \case
247
Forwards -> Just (angleOf (c^.velocity_))
248
Backwards -> t^?_Just.velocity_.to (angleOf.subtract (c^.velocity_)) <|> Just (angleOf (-c^.velocity_))
249
- Target -> t^?_Just.to (projected dt).to (`L.direction` (c^.position_)).to angleOf
+ Target -> t^?_Just.to (angleOf . (`L.direction` (c^.position_)) . projected dt)
250
251
thrust :: Newtons Double
252
thrust = convert $ Kilo (Grams 1000) .*. Kilo (Metres 10) ./. Seconds (1/60) ./. Seconds 1
0 commit comments