jonascarpay / apecs

a fast, extensible, type driven Haskell ECS framework for games
392 stars 43 forks source link

I think the function "cameraTransform" (in modle Apecs.Gloss) have some wrong. #35

Closed Yang123321 closed 5 years ago

Yang123321 commented 5 years ago

windowToWorld :: Camera -> (Float,Float) -> V2 Float windowToWorld (Camera cx cs) (x,y) = V2 x y ^/ cs - cx

is should be :

windowToWorld :: Camera -> (Float,Float) -> V2 Float windowToWorld (Camera cx cs) (x,y) = V2 x y ^/ cs + cx

jonascarpay commented 5 years ago

Fixed by #39