MCPcopy Create free account
hub / github.com/melonjs/melonJS / insert

Method insert

packages/melonjs/src/physics/broadphase/broadphase.ts:45–45  ·  view source on GitHub ↗

Insert one item. Splits + redistributes if `max_objects` is exceeded.

(item: TItem)

Source from the content-addressed store, hash-verified

43
44 /** Insert one item. Splits + redistributes if `max_objects` is exceeded. */
45 insert(item: TItem): void;
46 /**
47 * Remove one item. Returns `true` if the item was found.
48 * Includes a stale-bounds fallback walk for items that moved

Callers 5

insertMethod · 0.65
insertMethod · 0.65
quadtree.spec.jsFile · 0.65
octree.spec.jsFile · 0.65
roundFunction · 0.65

Implementers 2

Octreepackages/melonjs/src/physics/broadphas
QuadTreepackages/melonjs/src/physics/broadphas

Calls

no outgoing calls

Tested by 1

roundFunction · 0.52