Camera position refactor
This commit is contained in:
@@ -212,9 +212,9 @@ soundAngle p w
|
||||
. radToDeg
|
||||
. normalizeAngle
|
||||
. (+ pi)
|
||||
$ argV (vNormal (p -.- earPos)) - (w ^. cWorld . lWorld . cwCam . cwcRot)
|
||||
$ argV (vNormal (p -.- earPos)) - (w ^. cWorld . lWorld . camPos . camRot)
|
||||
where
|
||||
earPos = w ^. cWorld . lWorld . cwCam . cwcViewFrom
|
||||
earPos = w ^. cWorld . lWorld . camPos . camViewFrom
|
||||
|
||||
{- | Uses the first free origin from a list.
|
||||
Does nothing if all origins are already creating sounds.
|
||||
|
||||
Reference in New Issue
Block a user