Class
SweepAndPrune
:One dimensional sweep and prune
ignore
edges
: Array<SapEdge>objects
: Map<GameObj<AreaComp>, [SapEdge, SapEdge]>add
(obj: GameObj<AreaComp>) => voidAdd the object and its edges to the list
param
obj- The object to add
remove
(obj: GameObj<AreaComp>) => voidRemove the object and its edges from the list
param
obj- The object to remove
clear
() => voidupdate
() => voidUpdate edges and sort