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
Copy file name to clipboardExpand all lines: README.md
+25-1Lines changed: 25 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,13 +8,37 @@ This includes [TypeScript](https://github.com/Microsoft/TypeScript) ports of:
8
8
9
9
## Quick Start
10
10
11
-
Since this monorepo is not published on NPM yet, you can only run this locally.
11
+
This monorepo is in it's early stage, so to get started, you'll have to taka a look at the testbed project for now.
12
+
13
+
## Monorepo Commands:
12
14
13
15
Most important commands to execute from the root folder (you need [yarn](https://yarnpkg.com/) installed):
14
16
-`yarn` -> install dependencies
15
17
-`yarn workspaces run build` -> build all projects
18
+
-`yarn build:libs` -> build only the libraries
16
19
-`yarn start` -> Run testbed locally
20
+
-`yarn start:fresh` -> Run testbed locally after building all libraries freshly
17
21
-`yarn run bench` -> Run the benchmark using node.js
18
22
-`yarn run bench:web` -> Start a webserver for running the benchmarks using a browser,
19
23
-`yarn run lint` -> Run linters, formatters, etc.
20
24
-`yarn run lint:fix` -> Run linters, formatters, etc. and autofix if possible
25
+
26
+
## The @box2d Ecosystem
27
+
28
+
@box2d is a full-blown ecosystem for box2d for the JavaScript/TypeScript world. It can be used both in the browser and in node.js
29
+
30
+
Check out demos and compare performance here: https://lusito.github.io/box2d.ts/
31
+
32
+
**Fair Warning:** The whole @box2d ecosystem is in an early stage, so it will probably change a lot before we release the first stable version (1.0.0).
33
+
34
+
Other packages included in the ecosystem:
35
+
- Benchmark: Based on [bench2d](https://github.com/joelgwebber/bench2d) by joelgwebber
36
+
- Controllers: From the LiquidFun project
37
+
- Particles: Also from the LiquidFun project
38
+
- Lights: [ported from LibGDX](https://github.com/libgdx/box2dlights)
39
+
- Testbed: A set of demos, partially ports of the original projects, partially new ones.
40
+
41
+
# Contributing
42
+
43
+
We're looking for contributors to make this the best place to start with box2d on the web.
44
+
Check out the project page for more information: https://github.com/Lusito/box2d.ts
Copy file name to clipboardExpand all lines: packages/benchmark/README.md
+24Lines changed: 24 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,10 @@
2
2
3
3
A benchmark to compare various js/ts Box2D implementations.
4
4
5
+
Try it here: https://lusito.github.io/box2d.ts/
6
+
7
+
**Fair Warning:** In theory this can be added as a dependency to other physics libraries in order to run benchmarks against local code. But this has not been tested yet.
8
+
5
9
Based on [bench2d](https://github.com/joelgwebber/bench2d) by joelgwebber
6
10
7
11
## Example output using node.js v12.16.3
@@ -36,3 +40,23 @@ Based on [bench2d](https://github.com/joelgwebber/bench2d) by joelgwebber
36
40
| box2d-html5 | 11.05 | 11 | 10 | 2.02 |
37
41
|@flyover/box2d| 17.83 | 20 | 17 | 3.26 |
38
42
| planck.js | 23.17 | 25 | 18 | 4.23 |
43
+
44
+
## The @box2d Ecosystem
45
+
46
+
@box2d is a full-blown ecosystem for box2d for the JavaScript/TypeScript world. It can be used both in the browser and in node.js
47
+
48
+
Check out demos and compare performance here: https://lusito.github.io/box2d.ts/
49
+
50
+
**Fair Warning:** The whole @box2d ecosystem is in an early stage, so it will probably change a lot before we release the first stable version (1.0.0).
51
+
52
+
Other packages included in the ecosystem:
53
+
- Benchmark: Based on [bench2d](https://github.com/joelgwebber/bench2d) by joelgwebber
54
+
- Controllers: From the LiquidFun project
55
+
- Particles: Also from the LiquidFun project
56
+
- Lights: [ported from LibGDX](https://github.com/libgdx/box2dlights)
57
+
- Testbed: A set of demos, partially ports of the original projects, partially new ones.
58
+
59
+
# Contributing
60
+
61
+
We're looking for contributors to make this the best place to start with box2d on the web.
62
+
Check out the project page for more information: https://github.com/Lusito/box2d.ts
@box2d/controllers is a TypeScript port of Googles [LiquidFun](https://github.com/google/liquidfun) controllers.
6
+
This is a fork of [box2d.ts](https://github.com/flyover/box2d.ts) from Isaac Burns (flyover) who did a huge job initially porting Box2D and [LiquidFun](https://github.com/google/liquidfun) to TypeScript.
7
+
8
+
## The @box2d Ecosystem
9
+
10
+
@box2d is a full-blown ecosystem for box2d for the JavaScript/TypeScript world. It can be used both in the browser and in node.js
11
+
12
+
Check out demos and compare performance here: https://lusito.github.io/box2d.ts/
13
+
14
+
**Fair Warning:** The whole @box2d ecosystem is in an early stage, so it will probably change a lot before we release the first stable version (1.0.0).
15
+
16
+
Other packages included in the ecosystem:
17
+
- Benchmark: Based on [bench2d](https://github.com/joelgwebber/bench2d) by joelgwebber
18
+
- Controllers: From the LiquidFun project
19
+
- Particles: Also from the LiquidFun project
20
+
- Lights: [ported from LibGDX](https://github.com/libgdx/box2dlights)
21
+
- Testbed: A set of demos, partially ports of the original projects, partially new ones.
22
+
23
+
# Contributing
24
+
25
+
We're looking for contributors to make this the best place to start with box2d on the web.
26
+
Check out the project page for more information: https://github.com/Lusito/box2d.ts
@box2d/core is a TypeScript port of Erin Cattos [Box2D](https://github.com/erincatto/box2d).
6
+
This is a fork of [box2d.ts](https://github.com/flyover/box2d.ts) from Isaac Burns (flyover) who did a huge job initially porting Box2D and [LiquidFun](https://github.com/google/liquidfun) to TypeScript.
7
+
8
+
## The @box2d Ecosystem
9
+
10
+
@box2d is a full-blown ecosystem for box2d for the JavaScript/TypeScript world. It can be used both in the browser and in node.js
11
+
12
+
Check out demos and compare performance here: https://lusito.github.io/box2d.ts/
13
+
14
+
**Fair Warning:** The whole @box2d ecosystem is in an early stage, so it will probably change a lot before we release the first stable version (1.0.0).
15
+
16
+
Other packages included in the ecosystem:
17
+
- Benchmark: Based on [bench2d](https://github.com/joelgwebber/bench2d) by joelgwebber
18
+
- Controllers: From the LiquidFun project
19
+
- Particles: Also from the LiquidFun project
20
+
- Lights: [ported from LibGDX](https://github.com/libgdx/box2dlights)
21
+
- Testbed: A set of demos, partially ports of the original projects, partially new ones.
22
+
23
+
# Contributing
24
+
25
+
We're looking for contributors to make this the best place to start with box2d on the web.
26
+
Check out the project page for more information: https://github.com/Lusito/box2d.ts
A [TypeScript](https://github.com/Microsoft/TypeScript) port of Kalle Hameleinen's Box2DLights.
@@ -25,3 +25,23 @@ This library offer easy way to add soft dynamic 2d lights to your physic based g
25
25
## Usage
26
26
27
27
TODO (see the testbed for simple examples)
28
+
29
+
## The @box2d Ecosystem
30
+
31
+
@box2d is a full-blown ecosystem for box2d for the JavaScript/TypeScript world. It can be used both in the browser and in node.js
32
+
33
+
Check out demos and compare performance here: https://lusito.github.io/box2d.ts/
34
+
35
+
**Fair Warning:** The whole @box2d ecosystem is in an early stage, so it will probably change a lot before we release the first stable version (1.0.0).
36
+
37
+
Other packages included in the ecosystem:
38
+
- Benchmark: Based on [bench2d](https://github.com/joelgwebber/bench2d) by joelgwebber
39
+
- Controllers: From the LiquidFun project
40
+
- Particles: Also from the LiquidFun project
41
+
- Lights: [ported from LibGDX](https://github.com/libgdx/box2dlights)
42
+
- Testbed: A set of demos, partially ports of the original projects, partially new ones.
43
+
44
+
# Contributing
45
+
46
+
We're looking for contributors to make this the best place to start with box2d on the web.
47
+
Check out the project page for more information: https://github.com/Lusito/box2d.ts
@box2d/lights is a TypeScript port of Googles [LiquidFun](https://github.com/google/liquidfun) particles.
6
+
This is a fork of [box2d.ts](https://github.com/flyover/box2d.ts) from Isaac Burns (flyover) who did a huge job initially porting Box2D and [LiquidFun](https://github.com/google/liquidfun) to TypeScript.
7
+
8
+
## The @box2d Ecosystem
9
+
10
+
@box2d is a full-blown ecosystem for box2d for the JavaScript/TypeScript world. It can be used both in the browser and in node.js
11
+
12
+
Check out demos and compare performance here: https://lusito.github.io/box2d.ts/
13
+
14
+
**Fair Warning:** The whole @box2d ecosystem is in an early stage, so it will probably change a lot before we release the first stable version (1.0.0).
15
+
16
+
Other packages included in the ecosystem:
17
+
- Benchmark: Based on [bench2d](https://github.com/joelgwebber/bench2d) by joelgwebber
18
+
- Controllers: From the LiquidFun project
19
+
- Particles: Also from the LiquidFun project
20
+
- Lights: [ported from LibGDX](https://github.com/libgdx/box2dlights)
21
+
- Testbed: A set of demos, partially ports of the original projects, partially new ones.
22
+
23
+
# Contributing
24
+
25
+
We're looking for contributors to make this the best place to start with box2d on the web.
26
+
Check out the project page for more information: https://github.com/Lusito/box2d.ts
0 commit comments