Add in "linear" lWorld to separate time reversable worlds

This commit is contained in:
2022-10-28 12:24:51 +01:00
parent 5f6bd43599
commit 7e790b7153
130 changed files with 827 additions and 980 deletions
+2 -2
View File
@@ -212,9 +212,9 @@ soundAngle p w
. radToDeg
. normalizeAngle
. (+ pi)
$ argV (vNormal (p -.- earPos)) - _cwcRot (_cwCam (_cWorld w))
$ argV (vNormal (p -.- earPos)) - (w ^. cWorld . lWorld . cwCam . cwcRot)
where
earPos = w ^. cWorld . cwCam . cwcViewFrom
earPos = w ^. cWorld . lWorld . cwCam . cwcViewFrom
{- | Uses the first free origin from a list.
Does nothing if all origins are already creating sounds.