Minor tweaking, argument refining
This commit is contained in:
@@ -61,7 +61,7 @@ wasdWithAiming w speed cr
|
||||
movAbs = rotateV (w ^. cWorld . lWorld . camPos . camRot) $ normalizeV movDir
|
||||
isAiming = _posture (_crStance cr) == Aiming
|
||||
mouseDir = case cr ^? crInv . ix (crSel cr) . itScope . scopePos of
|
||||
Just _ -> argV $ mouseWorldPos w -.- _crPos cr
|
||||
Just _ -> argV $ mouseWorldPos (w ^. input) (w ^. cWorld . lWorld . camPos) -.- _crPos cr
|
||||
_ -> argV (_mousePos (_input w)) + (w ^. cWorld . lWorld . camPos . camRot)
|
||||
|
||||
wasdM :: SDL.Scancode -> Point2
|
||||
|
||||
Reference in New Issue
Block a user