SweepAndPrune:

One dimensional sweep and prune

objects: Map<GameObj, [Edge$1, Edge$1]>

add(obj: GameObj): void

Add the object and its edges to the list

paramobjThe object to add

remove(obj: GameObj): void

Remove the object and its edges from the list

paramobjThe object to remove

update(): void

Update edges and sort

kaplay logo

Misc

Layer