Cleanup bullet damage
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
module Dodge.Wall.Reflect
|
||||
where
|
||||
import Geometry
|
||||
import Dodge.Data
|
||||
|
||||
reflDirWall :: Point2 -> Point2 -> Wall -> Float
|
||||
reflDirWall sp ep wl = argV (reflectIn (uncurry (-.-) (_wlLine wl)) (ep -.- sp))
|
||||
|
||||
-- point free nonsense
|
||||
reflVelWall :: Wall -> Point2 -> Point2
|
||||
reflVelWall = reflectIn . uncurry (-.-) . _wlLine
|
||||
Reference in New Issue
Block a user