Add your speed to launched projectile, based on old position
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user