Fix bug in flame wall damages, cleanup
This commit is contained in:
@@ -16,7 +16,7 @@ wlIsSeeThrough wl = case _wlOpacity wl of
|
||||
reflDirWall :: Point2 -> Point2 -> Wall -> Float
|
||||
reflDirWall sp ep wl = argV (reflectIn (uncurry (-.-) (_wlLine wl)) (ep -.- sp))
|
||||
|
||||
-- point free nonsense
|
||||
-- point free nonsense. 0 for no damping, 1 for full damping
|
||||
reflVelWallDamp :: Float -> Wall -> Point2 -> Point2
|
||||
reflVelWallDamp x = reflectInParam x . uncurry (-.-) . _wlLine
|
||||
|
||||
|
||||
Reference in New Issue
Block a user