Class

SweepAndPruneHorizontal

:

One dimensional horizontal sweep and prune

ignore

edges

: Array<SapEdgeHorizontal>

objects

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

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

iterPairs

(pairCb: (obj1: GameObj<AreaComp>, obj2: GameObj<AreaComp>) => void) => void

Iterates all object pairs which potentially collide

kaplay logo

Components

Miscalenous