Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- type AABB = LBox
- type NeedsUpdateSet = [AABB]
- data BPTree = BPTree {}
- bPTreeFromOwlPFState :: OwlPFState -> BPTree
- emptyBPTree :: BPTree
- broadPhase_cull :: AABB -> BPTree -> [REltId]
- broadPhase_cull_includeZero :: AABB -> BPTree -> [REltId]
- data BroadPhaseState = BroadPhaseState {}
- emptyBroadPhaseState :: BroadPhaseState
- update_bPTree :: HasOwlTree a => a -> SuperOwlChanges -> BPTree -> (NeedsUpdateSet, BroadPhaseState)
Documentation
type NeedsUpdateSet = [AABB] Source #
emptyBPTree :: BPTree Source #
broadPhase_cull :: AABB -> BPTree -> [REltId] Source #
returns list of REltIds that intersect with given AABB
broadPhase_cull_includeZero :: AABB -> BPTree -> [REltId] Source #
same as above but also returns zero area elements for selecting
data BroadPhaseState Source #
Instances
Show BroadPhaseState Source # | |
Defined in Potato.Flow.BroadPhase showsPrec :: Int -> BroadPhaseState -> ShowS # show :: BroadPhaseState -> String # showList :: [BroadPhaseState] -> ShowS # | |
Eq BroadPhaseState Source # | |
Defined in Potato.Flow.BroadPhase (==) :: BroadPhaseState -> BroadPhaseState -> Bool # (/=) :: BroadPhaseState -> BroadPhaseState -> Bool # |
update_bPTree :: HasOwlTree a => a -> SuperOwlChanges -> BPTree -> (NeedsUpdateSet, BroadPhaseState) Source #
updates a BPTree and returns list of AABBs that were affected exposed for testing only, do not call this directly