@codexo/exojs-tilemap-physics 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"outline.js","names":[],"sources":["../../src/outline.ts"],"sourcesContent":["import type { PointLike } from '@codexo/exojs';\n\n/**\n * Boundary extraction for a set of whole tile cells.\n *\n * Turns an occupancy set into closed loops of grid vertices, wound so that the\n * physics convention (outward normal of the edge `v -> w` is `(wy - vy, vx - wx)`\n * normalised) puts the solid side outside an island boundary and inside a hole\n * boundary. In a +Y-down space that means an island loop has a positive\n * shoelace area and a hole loop a negative one.\n */\n\n/** `+X`, `+Y`, `-X`, `-Y`, in that index order. */\nconst STEP_X = [1, 0, -1, 0] as const;\nconst STEP_Y = [0, 1, 0, -1] as const;\n\n/**\n * Turn preference at a vertex where two loops touch, relative to the incoming\n * direction: toward the solid side first, then straight, then away from it.\n * Hugging the solid at every ambiguous corner is what separates two regions\n * that meet diagonally into two correctly wound loops instead of one loop that\n * crosses itself.\n */\nconst TURN_ORDER = [1, 0, 3] as const;\n\nconst key = (x: number, y: number): string => `${x},${y}`;\n\n/** Which of the four directed unit edges leaving a vertex are still unused. */\ntype EdgeMap = Map<string, boolean[]>;\n\n/**\n * Split an occupancy set into 4-connected components. Cells that touch only at\n * a corner are separate components: an 8-connected component would produce a\n * boundary that pinches at the shared vertex, where the solid side is not\n * defined.\n */\nconst components = (cells: ReadonlySet<string>, coordinates: readonly number[]): Array<Set<string>> => {\n const remaining = new Set(cells);\n const result: Array<Set<string>> = [];\n\n for (let i = 0; i < coordinates.length; i += 2) {\n const startKey = key(coordinates[i]!, coordinates[i + 1]!);\n\n if (!remaining.has(startKey)) continue;\n\n const component = new Set<string>();\n const stack = [coordinates[i]!, coordinates[i + 1]!];\n\n remaining.delete(startKey);\n component.add(startKey);\n\n while (stack.length > 0) {\n const y = stack.pop()!;\n const x = stack.pop()!;\n\n for (let direction = 0; direction < 4; direction++) {\n const nx = x + STEP_X[direction]!;\n const ny = y + STEP_Y[direction]!;\n const neighbour = key(nx, ny);\n\n if (!remaining.has(neighbour)) continue;\n\n remaining.delete(neighbour);\n component.add(neighbour);\n stack.push(nx, ny);\n }\n }\n\n result.push(component);\n }\n\n return result;\n};\n\n/**\n * One directed unit edge per cell side that faces empty space, oriented so the\n * solid stays on the same side of every edge.\n */\nconst boundaryEdges = (component: ReadonlySet<string>): EdgeMap => {\n const edges: EdgeMap = new Map();\n\n const add = (x: number, y: number, direction: number): void => {\n const from = key(x, y);\n let slots = edges.get(from);\n\n if (slots === undefined) {\n slots = [false, false, false, false];\n edges.set(from, slots);\n }\n\n slots[direction] = true;\n };\n\n for (const cell of component) {\n const comma = cell.indexOf(',');\n const x = Number(cell.slice(0, comma));\n const y = Number(cell.slice(comma + 1));\n\n if (!component.has(key(x, y - 1))) add(x, y, 0);\n if (!component.has(key(x + 1, y))) add(x + 1, y, 1);\n if (!component.has(key(x, y + 1))) add(x + 1, y + 1, 2);\n if (!component.has(key(x - 1, y))) add(x, y + 1, 3);\n }\n\n return edges;\n};\n\n/**\n * Rotate a loop to start at its lowest `(x, y)` vertex. The walk starts wherever\n * the first unused edge happens to be, which depends on the order the cells were\n * handed in; a canonical start makes the emitted vertex array itself independent\n * of that, not just the boundary it describes.\n */\nconst rotateToLowestVertex = (loop: readonly number[]): number[] => {\n let start = 0;\n\n for (let i = 2; i < loop.length; i += 2) {\n const x = loop[i]!;\n const y = loop[i + 1]!;\n\n if (x < loop[start]! || (x === loop[start]! && y < loop[start + 1]!)) {\n start = i;\n }\n }\n\n return [...loop.slice(start), ...loop.slice(0, start)];\n};\n\n/** Drop every vertex whose two adjacent edges point the same way. */\nconst dropCollinear = (loop: readonly number[]): number[] => {\n const count = loop.length / 2;\n const reduced: number[] = [];\n\n for (let i = 0; i < count; i++) {\n const previous = (i - 1 + count) % count;\n const next = (i + 1) % count;\n const inX = loop[i * 2]! - loop[previous * 2]!;\n const inY = loop[i * 2 + 1]! - loop[previous * 2 + 1]!;\n const outX = loop[next * 2]! - loop[i * 2]!;\n const outY = loop[next * 2 + 1]! - loop[i * 2 + 1]!;\n\n if (inX * outY - inY * outX !== 0) {\n reduced.push(loop[i * 2]!, loop[i * 2 + 1]!);\n }\n }\n\n return reduced;\n};\n\n/** Flat `[x, y, ...]` coordinates as points. */\nconst toPoints = (loop: readonly number[]): PointLike[] => {\n const points: PointLike[] = [];\n\n for (let i = 0; i < loop.length; i += 2) {\n points.push({ x: loop[i]!, y: loop[i + 1]! });\n }\n\n return points;\n};\n\n/**\n * Trace the boundary of a set of whole tile cells into closed loops of grid\n * vertices.\n *\n * @param coordinates - Cell coordinates as `[tx, ty, tx, ty, ...]`. Duplicates\n * are ignored.\n * @returns One loop of grid vertices per boundary: the outer boundary of every\n * 4-connected component plus one loop per enclosed hole. Collinear\n * vertices are removed, so a straight run of 200 cells is two\n * vertices. Loops carry no repeated closing vertex.\n */\nexport const traceCellOutlines = (coordinates: readonly number[]): PointLike[][] => {\n const cells = new Set<string>();\n\n for (let i = 0; i < coordinates.length; i += 2) {\n cells.add(key(coordinates[i]!, coordinates[i + 1]!));\n }\n\n const loops: PointLike[][] = [];\n\n for (const component of components(cells, coordinates)) {\n const edges = boundaryEdges(component);\n\n for (const [startVertex, startSlots] of edges) {\n for (let startDirection = 0; startDirection < 4; startDirection++) {\n if (!startSlots[startDirection]) continue;\n\n const comma = startVertex.indexOf(',');\n const loop: number[] = [];\n let x = Number(startVertex.slice(0, comma));\n let y = Number(startVertex.slice(comma + 1));\n let direction = startDirection;\n\n for (;;) {\n const slots = edges.get(key(x, y))!;\n\n slots[direction] = false;\n loop.push(x, y);\n x += STEP_X[direction]!;\n y += STEP_Y[direction]!;\n\n const nextSlots = edges.get(key(x, y));\n\n if (nextSlots === undefined) break;\n\n let next = -1;\n\n for (const turn of TURN_ORDER) {\n const candidate = (direction + turn) % 4;\n\n if (nextSlots[candidate]) {\n next = candidate;\n break;\n }\n }\n\n if (next === -1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AAO,YAAY,MAAM,QAAQ,CAAC,CAAC;GAC3C,IAAI,YAAY;GAEhB,SAAS;IACP,MAAM,QAAQ,MAAM,IAAI,IAAI,GAAG,CAAC,CAAC;IAEjC,MAAM,aAAa;IACnB,KAAK,KAAK,GAAG,CAAC;IACd,KAAK,OAAO;IACZ,KAAK,OAAO;IAEZ,MAAM,YAAY,MAAM,IAAI,IAAI,GAAG,CAAC,CAAC;IAErC,IAAI,cAAc,QAAW;IAE7B,IAAI,OAAO;IAEX,KAAK,MAAM,QAAQ,YAAY;KAC7B,MAAM,aAAa,YAAY,QAAQ;KAEvC,IAAI,UAAU,YAAY;MACxB,OAAO;MACP;KACF;IACF;IAEA,IAAI,SAAS,IAAI;IAEjB,YAAY;GACd;GAEA,IAAI,KAAK,UAAU,GACjB,MAAM,KAAK,SAAS,qBAAqB,cAAc,IAAI,CAAC,CAAC,CAAC;EAElE;CAEJ;CAEA,OAAO;AACT"}
@@ -0,0 +1,6 @@
1
+ export type { ObjectCollider, ObjectColliderOptions } from './objectLayer';
2
+ export { buildObjectLayerColliders } from './objectLayer';
3
+ export type { TileColliderOptions } from './TileColliderStreamer';
4
+ export { TileColliderStreamer } from './TileColliderStreamer';
5
+ export type { ColliderDefaults, TileColliderContext, TileColliderMaterial, TileColliderMaterialResolver, TileRegionMode } from './types';
6
+ //# sourceMappingURL=public.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../src/public.ts"],"names":[],"mappings":"AAIA,YAAY,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAC3E,OAAO,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAC;AAC1D,YAAY,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,YAAY,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,4BAA4B,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC"}
@@ -0,0 +1,70 @@
1
+ import type { CollisionFilter } from '@codexo/exojs-physics';
2
+ import type { TileMapObject } from '@codexo/exojs-tilemap';
3
+ /**
4
+ * How a run of solid whole-cell tiles is turned into colliders.
5
+ *
6
+ * `'boxes'` keeps the merged rectangles as solid `BoxShape` colliders: the
7
+ * region has an interior, so point queries, overlaps and sensors behave, and a
8
+ * body that starts inside solid tiles is pushed out. Adjacent rectangles share
9
+ * an internal edge, which a body sliding across can catch on.
10
+ *
11
+ * `'outline'` traces the boundary of each solid region into closed one-sided
12
+ * chains. Nothing is left to catch on inside a region, which is what a
13
+ * side-scroller wants, but the region has no interior: queries inside it find
14
+ * nothing and a body spawned inside it falls through.
15
+ */
16
+ export type TileRegionMode = 'boxes' | 'outline';
17
+ /** Collider settings a {@link TileColliderMaterialResolver} may override. */
18
+ export interface TileColliderMaterial {
19
+ friction?: number;
20
+ restitution?: number;
21
+ density?: number;
22
+ isSensor?: boolean;
23
+ filter?: Partial<CollisionFilter>;
24
+ }
25
+ /** What a {@link TileColliderMaterialResolver} is asked about. */
26
+ export interface TileColliderContext {
27
+ /**
28
+ * The class/type string of the source geometry: the shared `type` of a merged
29
+ * region, or the source object's own. Empty when the source carries none.
30
+ */
31
+ readonly type: string;
32
+ /**
33
+ * The source object, or `null` for a merged whole-cell region - a merged run
34
+ * spans many tiles and has no single originating object.
35
+ */
36
+ readonly object: TileMapObject | null;
37
+ /**
38
+ * Tile column the geometry came from; the top-left cell of a merged region.
39
+ * Absent for object-layer objects, which are not placed on the tile grid.
40
+ */
41
+ readonly tx?: number;
42
+ /** Tile row, under the same rule as {@link tx}. */
43
+ readonly ty?: number;
44
+ }
45
+ /**
46
+ * Per-object collider settings, merged over the call-level defaults. Return
47
+ * `null` to accept the defaults unchanged.
48
+ *
49
+ * Called only while a chunk is being built or rebuilt, never during a
50
+ * no-change {@link import('./TileColliderStreamer').TileColliderStreamer.sync}.
51
+ * It is a build-time mapping, not a live rule: changing what the resolver
52
+ * would return has no effect until the layer itself changes.
53
+ */
54
+ export type TileColliderMaterialResolver = (context: TileColliderContext) => TileColliderMaterial | null;
55
+ /** Collider settings shared by every generated collider unless overridden. */
56
+ export interface ColliderDefaults {
57
+ /** Coulomb friction. Default `0.6`. */
58
+ friction?: number;
59
+ /** Restitution / bounciness in `[0, 1]`. Default `0`. */
60
+ restitution?: number;
61
+ /** Density; irrelevant while the bodies are static. Default `1`. */
62
+ density?: number;
63
+ /** Generate overlap events instead of contact response. Default `false`. */
64
+ isSensor?: boolean;
65
+ /** Category/mask/group filter; partials merge over the physics defaults. */
66
+ filter?: Partial<CollisionFilter>;
67
+ /** Per-object override of any of the above. */
68
+ material?: TileColliderMaterialResolver;
69
+ }
70
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE3D;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,SAAS,CAAC;AAEjD,6EAA6E;AAC7E,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;CACnC;AAED,kEAAkE;AAClE,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,QAAQ,CAAC,MAAM,EAAE,aAAa,GAAG,IAAI,CAAC;IACtC;;;OAGG;IACH,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IACrB,mDAAmD;IACnD,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;;;;;;GAQG;AACH,MAAM,MAAM,4BAA4B,GAAG,CAAC,OAAO,EAAE,mBAAmB,KAAK,oBAAoB,GAAG,IAAI,CAAC;AAEzG,8EAA8E;AAC9E,MAAM,WAAW,gBAAgB;IAC/B,uCAAuC;IACvC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,yDAAyD;IACzD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oEAAoE;IACpE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,4EAA4E;IAC5E,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,4EAA4E;IAC5E,MAAM,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;IAClC,+CAA+C;IAC/C,QAAQ,CAAC,EAAE,4BAA4B,CAAC;CACzC"}
package/package.json ADDED
@@ -0,0 +1,52 @@
1
+ {
2
+ "name": "@codexo/exojs-tilemap-physics",
3
+ "version": "0.16.0",
4
+ "description": "Static physics colliders from ExoJS tilemap collision geometry.",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/Exoridus/ExoJS.git",
8
+ "directory": "packages/exojs-tilemap-physics"
9
+ },
10
+ "type": "module",
11
+ "sideEffects": false,
12
+ "main": "./dist/esm/index.js",
13
+ "module": "./dist/esm/index.js",
14
+ "types": "./dist/esm/index.d.ts",
15
+ "exports": {
16
+ ".": {
17
+ "types": "./dist/esm/index.d.ts",
18
+ "import": "./dist/esm/index.js",
19
+ "default": "./dist/esm/index.js"
20
+ },
21
+ "./package.json": "./package.json"
22
+ },
23
+ "files": [
24
+ "dist/esm/",
25
+ "README.md",
26
+ "LICENSE"
27
+ ],
28
+ "scripts": {
29
+ "build": "tsx ../../scripts/build-extension.ts",
30
+ "build:dev": "tsx ../../scripts/build-extension.ts --dev",
31
+ "typecheck": "tsc --noEmit && tsc --noEmit -p tsconfig.test.json",
32
+ "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"",
33
+ "test": "vitest run --root ../.. --project=exojs-tilemap-physics"
34
+ },
35
+ "peerDependencies": {
36
+ "@codexo/exojs": "0.16.x",
37
+ "@codexo/exojs-physics": "0.16.x",
38
+ "@codexo/exojs-tilemap": "0.16.x"
39
+ },
40
+ "devDependencies": {
41
+ "@codexo/exojs": "workspace:*",
42
+ "@codexo/exojs-config": "workspace:*",
43
+ "@codexo/exojs-ldtk": "workspace:*",
44
+ "@codexo/exojs-physics": "workspace:*",
45
+ "@codexo/exojs-tiled": "workspace:*",
46
+ "@codexo/exojs-tilemap": "workspace:*"
47
+ },
48
+ "license": "MIT",
49
+ "publishConfig": {
50
+ "access": "public"
51
+ }
52
+ }