Work towards making world read/showable
This commit is contained in:
@@ -18,9 +18,11 @@ findBoundDists cfig w
|
||||
hw = halfWidth cfig
|
||||
hh = halfHeight cfig
|
||||
|
||||
updateBounds :: Configuration -> World -> World
|
||||
updateBounds cfig w = w
|
||||
& boundDist .~ bdists
|
||||
& boundBox .~ map ( (+.+ _cameraCenter w) . rotateV (_cameraRot w) ) (rectNSWE n s w' e)
|
||||
updateBounds :: Universe -> Universe
|
||||
updateBounds uv = uv
|
||||
& uvWorld . boundDist .~ bdists
|
||||
& uvWorld . boundBox .~ map ( (+.+ _cameraCenter w) . rotateV (_cameraRot w) ) (rectNSWE n s w' e)
|
||||
where
|
||||
w = _uvWorld uv
|
||||
cfig = _uvConfig uv
|
||||
bdists@(n,s,e,w') = findBoundDists cfig w
|
||||
|
||||
Reference in New Issue
Block a user