Refactor crPos to be a V3
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
module Dodge.SpawnAt (respawn) where
|
||||
|
||||
import Linear
|
||||
--import Dodge.SoundLogic.ExternallyGeneratedSounds
|
||||
import Dodge.Creature
|
||||
import Geometry.Data
|
||||
@@ -20,4 +21,4 @@ spawnAt p d w = w
|
||||
---- SoundStart BackgroundSound p foamSprayFadeOutS Nothing :
|
||||
-- [MakeStartCloudAt (V3 x y 20 & _xy +~ p) | x <- [-5, -4 .. 5], y <- [-5, -4 .. 5]]
|
||||
where
|
||||
f = set crPos p . set crDir d . set crMvDir d . set crMvAim d . set crZ 0 . set crZVel 0
|
||||
f = set (crPos . _xy) p . set crDir d . set crMvDir d . set crMvAim d . set (crPos . _z) 0 . set crZVel 0
|
||||
|
||||
Reference in New Issue
Block a user