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

Method sortOn

packages/melonjs/src/physics/world.js:180–182  ·  view source on GitHub ↗

* Override the inherited `Container.sortOn` setter so the * broadphase swaps to match when crossing a 2D↔3D boundary. See * the `broadphase` JSDoc for why the swap is reactive rather than * Stage-driven. The 2D/3D classification key is `"depth"` — every * other sortOn value lives in the 2D r

()

Source from the content-addressed store, hash-verified

178 * @returns {"x"|"y"|"z"|"depth"}
179 */
180 get sortOn() {
181 return this._sortOn;
182 }
183 /**
184 * @param {"x"|"y"|"z"|"depth"} value
185 */

Callers

nothing calls this directly

Calls 1

createBroadphaseFunction · 0.90

Tested by

no test coverage detected