Work on gibs and chasms

This commit is contained in:
2025-08-01 09:39:13 +01:00
parent 7110ddb7a6
commit eeb7c8ac88
22 changed files with 586 additions and 373 deletions
+8 -1
View File
@@ -1,6 +1,8 @@
{-# OPTIONS_GHC -Wno-unused-imports #-}
module Dodge.TestString where
import ShortShow
import Geometry
import qualified SDL
import Linear
import Dodge.ListDisplayParams
@@ -26,7 +28,12 @@ import qualified IntMapHelp as IM
import qualified Data.Map.Strict as M
testStringInit :: Universe -> [String]
testStringInit u = map show (M.elems $ u ^. uvWorld . input . pressedKeys)
testStringInit u = map shortShow (u ^.. uvWorld . cWorld . lWorld . debris . each . to g)
where
g db = (pz,z,norm v)
where
v@(V3 _ _ z) = db ^. dbVel
(V3 _ _ pz) = db ^. dbPos
--return . foldMap (prettyLDT (show . (^. _1 . itType))) . invLDT $ _crInv cr
-- where
-- idp = invDisplayParams $ u ^. uvWorld