Add your speed to launched projectile, based on old position

This commit is contained in:
2024-12-20 17:49:46 +00:00
parent 056b8be534
commit 1e23c9bd1e
5 changed files with 2 additions and 6 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ createShell homing payload muz cr w = w
{ _prjPos = pos
, _prjZ = 20
, _prjStartPos = pos
, _prjVel = rotateV dir (V2 1 0)
, _prjVel = rotateV dir (V2 1 0) + cr ^. crPos - cr ^. crOldPos
, _prjDraw = homingDrawType homing
, _prjID = i
, _prjAcc = rotateV dir (V2 3 0)