Add terminal GODON command
This commit is contained in:
+2
-2
@@ -16,7 +16,7 @@ curveLeftField mg pt = case pt of
|
||||
|
||||
curveAroundField :: Magnet -> Particle -> Particle
|
||||
curveAroundField mg pt = case pt of
|
||||
BulletPt{} | thedist < 400 -> pt & btVel' %~ rotateToCircle
|
||||
BulletPt{} | thedist < 200 -> pt & btVel' %~ rotateToCircle
|
||||
where
|
||||
thedist = dist btpos mgpos
|
||||
mgpos = _mgPos mg
|
||||
@@ -27,5 +27,5 @@ curveAroundField mg pt = case pt of
|
||||
= rotateV rot vel
|
||||
| otherwise = rotateV (negate rot) vel
|
||||
rot | thedist < 100 = 0.5
|
||||
| otherwise = 0.5 - ((thedist - 100) / 600)
|
||||
| otherwise = 0.5 - ((thedist - 100) / 200)
|
||||
_ -> pt
|
||||
|
||||
Reference in New Issue
Block a user