Unify bullet creation
This commit is contained in:
@@ -15,7 +15,7 @@ turnTo turnSpeed sp tp a
|
||||
vecTurnTo :: Float -> Point2 -> Point2 -> Point2 -> Point2
|
||||
vecTurnTo turnSpeed sp tp vdir
|
||||
| angleVV vToTarg vdir <= turnSpeed
|
||||
= argV vdir *.* normalizeV vToTarg
|
||||
= magV vdir *.* normalizeV vToTarg
|
||||
| isLHS (sp +.+ vdir) sp tp = rotateV (negate turnSpeed) vdir
|
||||
| otherwise = rotateV turnSpeed vdir
|
||||
where
|
||||
|
||||
Reference in New Issue
Block a user