Work on bouncing debris
This commit is contained in:
+10
-7
@@ -28,13 +28,16 @@ import qualified IntMapHelp as IM
|
||||
import qualified Data.Map.Strict as M
|
||||
|
||||
testStringInit :: Universe -> [String]
|
||||
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
|
||||
testStringInit u = [show $ u ^. uvWorld . testFloat
|
||||
, show . length $ u ^. uvWorld . cWorld . lWorld . debris
|
||||
]
|
||||
-- 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
|
||||
-- cfig = u ^. uvConfig
|
||||
|
||||
Reference in New Issue
Block a user