Class

SweepAndPrune

:

One dimensional sweep and prune

ignore

edges

: Array<SapEdge>

objects

: Map<GameObj<AreaComp>, [SapEdge, SapEdge]>

add

(obj: GameObj<AreaComp>) => void

Add the object and its edges to the list

param obj- The object to add

remove

(obj: GameObj<AreaComp>) => void

Remove the object and its edges from the list

param obj- The object to remove

clear

() => void

update

() => void

Update edges and sort

kaplay logo

Components