Separate out concrete part of world
This commit is contained in:
@@ -6,7 +6,7 @@ import Geometry.Vector
|
||||
|
||||
import Control.Lens
|
||||
decTimMvVel :: Proj -> World -> World
|
||||
decTimMvVel pj = projectiles . ix pjid %~
|
||||
decTimMvVel pj = cWorld . projectiles . ix pjid %~
|
||||
( (prjTimer -~ 1)
|
||||
. (prjPos %~ (+.+ vel) )
|
||||
. (prjAcc %~ rotateV rot )
|
||||
|
||||
Reference in New Issue
Block a user