Prop reification/splitting

This commit is contained in:
2022-07-24 13:45:05 +01:00
parent 5a2f529182
commit ac069d08f6
31 changed files with 585 additions and 458 deletions
+12
View File
@@ -0,0 +1,12 @@
module Dodge.WdP2f
where
import Geometry.Vector
import Dodge.Data
import Geometry.Data
import Control.Lens
doWdP2f :: WdP2f -> World -> (Point2,Float)
doWdP2f x = case x of
WdP2f0 -> const (0,0)
WdP2fDoorPosition drid -> \w -> let Just (a,b) = w ^? doors . ix drid . drPos
in (b, argV (a-.-b))