Fix bug when forming convex hull of game room bounds

This commit is contained in:
2021-09-30 23:46:59 +01:00
parent cb23960bd7
commit 1414d08d88
14 changed files with 51 additions and 16 deletions
+5 -5
View File
@@ -21,6 +21,7 @@ import Geometry
--import Geometry.Data
import Geometry.Vector3D
import Polyhedra
import Shape
import Control.Lens
import qualified Control.Foldl as L
@@ -119,11 +120,10 @@ explosiveBarrel :: Creature
explosiveBarrel = defaultInanimate
{ _crUpdate = updateExpBarrel
, _crHP = 400
, _crPict = picAtCrPos $ pictures
[ color red $ circleSolid 8
, setDepth 0.049 . color (greyN 0.5) $ circleSolid 10
, color orange $ circleSolid 10
]
, _crPict = shapeAtCrPos
. colorSH orange
. upperPrismPoly 20
$ polyCirc 4 10
, _crState = defaultState
{_crSpState = Barrel []
}