Improve mouse click rotation
This commit is contained in:
@@ -208,7 +208,9 @@ rotateCamera cfig w
|
||||
angleBetween (w ^. input . mousePos)
|
||||
<$> (w ^. input . heldPos . at SDL.ButtonRight) =
|
||||
w & wCam . camRot -~ rotation
|
||||
& input . inputMemory .~ WasMouseGameRotating
|
||||
| _gameplay_rotate_to_wall cfig
|
||||
, WasNotMouseGameRotating <- w ^. input . inputMemory
|
||||
, isNothing $ w ^? input . mouseButtons . ix SDL.ButtonRight =
|
||||
rotateToOverlappingWall w
|
||||
| otherwise = w
|
||||
|
||||
Reference in New Issue
Block a user