You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|[Box2D](https://github.com/erincatto/box2d) version compatibility | v2.3.1 | v2.4.1 (latest) |
10
+
| TypeScript declarations | No | Yes |
11
+
| Distributes UMD module | Yes | Yes |
12
+
| Distributes ES module | No | Yes |
13
+
| Distributes WebAssembly | Yes | Yes |
14
+
| Distributes asm.js | Yes | No |
15
+
| JS+WASM Size, kB | 467 | 537 |
16
+
| JS+WASM Size, kB (.gz) | 111 | 121 |
17
+
18
+
_Summary: I dropped older practices (asm.js) and adopted newer practices (ES modules, TypeScript)._
19
+
20
+
`box2d-wasm` is 9% bigger (but exports more+newer functionality).
21
+
The performance is likely to be identical (they're compiled with moreorless the same Emscripten flags).
22
+
23
+
The featureset is similar; `box2d-wasm` exports Box2D functionality via the same WebIDL bindings `box2d.js` used, but adds some updates for Box2D v2.4.1.
24
+
`box2d-wasm` additionally exposes some array properties and collision functions.
25
+
26
+
The invocation is similar; functionality is bound in the same way, so existing `box2d.js` examples and documentation should be broadly compatible with `box2d-wasm` (except for API differences specific to Box2D v2.4.1).
27
+
28
+
`box2d-wasm` provides a small number of [helper functions](box2d-wasm/Box2DModuleAugmentations.d.ts) for working with Emscripten types.
29
+
30
+
## Development differences
31
+
32
+
As for _how it's developed_, the differences from `box2d.js` are:
33
+
34
+
- Different build system, to support the newer cmake build system introduced in Box2D v2.4.0.
35
+
- Different approach to version controlling source code and build output
36
+
37
+
More detail at [`README.project-aims.md`](README.project-aims.md).
|[Box2D](https://github.com/erincatto/box2d) version compatibility | v2.3.1 | v2.4.1 (latest) |
32
-
| TypeScript declarations | No | Yes |
33
-
| Distributes UMD module | Yes | Yes |
34
-
| Distributes ES module | No | Yes |
35
-
| Distributes WebAssembly | Yes | Yes |
36
-
| Distributes asm.js | Yes | No |
37
-
| JS+WASM Size, kB | 467 | 537 |
38
-
| JS+WASM Size, kB (.gz) | 111 | 121 |
39
-
40
-
_Summary: I dropped older practices (asm.js) and adopted newer practices (ES modules, TypeScript)._
41
-
42
-
`box2d-wasm` is 9% bigger (but exports more+newer functionality).
43
-
The performance is likely to be identical (they're compiled with moreorless the same Emscripten flags).
44
-
45
-
The featureset is similar; `box2d-wasm` exports Box2D functionality via the same WebIDL bindings `box2d.js` used, but adds some updates for Box2D v2.4.1.
46
-
`box2d-wasm` additionally exposes some array properties and collision functions.
47
-
48
-
The invocation is similar; functionality is bound in the same way, so existing `box2d.js` examples and documentation should be broadly compatible with `box2d-wasm` (except for API differences specific to Box2D v2.4.1).
49
-
50
-
`box2d-wasm` provides a small number of [helper functions](box2d-wasm/Box2DModuleAugmentations.d.ts) for working with Emscripten types.
51
-
52
-
### Development differences
53
-
54
-
As for _how it's developed_, the differences from `box2d.js` are:
55
-
56
-
- Different build system, to support the newer cmake build system introduced in Box2D v2.4.0.
57
-
- Different approach to version controlling source code and build output
58
-
59
-
More detail at [`README.project-aims.md`](README.project-aims.md).
27
+
-[Comparison with `box2d.js`](README.comparison-with-box2d-js.md)
0 commit comments