Move wall collisions around

This commit is contained in:
2022-06-26 10:52:46 +01:00
parent ee9523dabb
commit 15b98e38ac
5 changed files with 33 additions and 58 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ module Dodge.Wall.DamageEffect where
import Dodge.Data
import Dodge.Particle.Spark
import Dodge.Particle.Bullet.Spawn
import Dodge.Wall.Reflect
import Dodge.Base.Wall
import Dodge.Wall.Dust
import Dodge.Block
import Geometry
-15
View File
@@ -1,15 +0,0 @@
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
reflVelWallDamp :: Float -> Wall -> Point2 -> Point2
reflVelWallDamp x = reflectInParam x . uncurry (-.-) . _wlLine
-- point free nonsense
reflVelWall :: Wall -> Point2 -> Point2
reflVelWall = reflectIn . uncurry (-.-) . _wlLine