tinytools-0.1.0.0
Safe HaskellSafe-Inferred
LanguageHaskell2010

Potato.Flow.BroadPhase

Synopsis

Documentation

type AABB = LBox Source #

data BPTree Source #

Constructors

BPTree 

Instances

Instances details
Show BPTree Source # 
Instance details

Defined in Potato.Flow.BroadPhase

Eq BPTree Source # 
Instance details

Defined in Potato.Flow.BroadPhase

Methods

(==) :: BPTree -> BPTree -> Bool #

(/=) :: BPTree -> BPTree -> Bool #

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

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