James Peach
af62e2d681
index.d.ts: export top level Settings declaration
...
This was causing issues when using the 0.3.x branch in a typescript context
```
../planck.js/lib/index.d.ts:539:1 - error TS1046: Top-level declarations in \
.d.ts files must start with either a 'declare' or 'export' modifier.
539 let Settings: {
~~~
```
2021-04-30 15:41:21 -07:00
Ali Shakiba
22141d72ec
small refactoring in d.ts
2021-03-13 21:44:35 -08:00
Ali Shakiba
6b71ae175d
use Object.create
2021-03-06 15:31:29 -08:00
Ali Shakiba
ec47900ed8
fix serializer
2021-03-06 15:19:30 -08:00
Ali Shakiba
c285ddd875
fix settings type
2021-02-24 22:08:18 -08:00
Ali Shakiba
5917d6bdfb
bug fix
2021-02-24 18:38:03 -08:00
Ali Shakiba
69ba8b2a89
move settings to main namespace
2021-02-24 18:34:44 -08:00
Ali Shakiba
32a96540b4
refactor index.d.ts
2021-02-24 00:03:36 -08:00
Ali Shakiba
4afb814435
fix world ts constructor signature
2021-02-07 23:24:46 -08:00
Ali Shakiba
211b04e2da
add pre-step and post-step events to World
2021-02-07 19:03:01 -08:00
Ali Shakiba
2e3b2cbf22
fix typo
2021-02-07 13:42:47 -08:00
Ali Shakiba
900191d9da
fix serializer
2021-02-07 13:42:47 -08:00
Ali Shakiba
e117b2fd6c
update license
2021-01-25 22:41:21 -08:00
Ali Shakiba
f90dd8c74a
fix serializer
2021-01-21 21:10:14 -08:00
Oliver Zell
016289f614
embed standard Math in typings
2021-01-16 16:47:47 +01:00
Ali Shakiba
ed0360436d
refactor fixture
2021-01-11 20:25:29 -08:00
Ali Shakiba
72e4e7ad40
make chain setNextVertex setPrevVertex
2021-01-11 20:25:17 -08:00
Ali Shakiba
19e4dc0d53
remove stepCount from world
2021-01-11 20:25:10 -08:00
Ali Shakiba
7b07c36dff
add shape to serializer ref types
2021-01-07 17:09:24 -08:00
Ali Shakiba
e96af44c8e
add bullet to serializer
2021-01-07 17:09:24 -08:00
Ali Shakiba
8ef09a649f
serialize to json instead of string
2021-01-07 17:09:23 -08:00
Ali Shakiba
4df04f0e36
add chain reset
2021-01-07 17:09:23 -08:00
Ali Shakiba
43ddb9d320
improve join serializer
2021-01-07 17:09:23 -08:00
Ali Shakiba
2dd37b969f
bug fix chain shape
2021-01-07 17:09:23 -08:00
Oliver Zell
c5bd8c9571
export Shape interface in typings
2020-11-09 18:18:16 +01:00
Oliver Zell
0713e6bd4f
split joint classes in static and non-static interfaces again
2020-10-09 15:47:11 +02:00
Oliver Zell
db55b9e20e
fix optional parameters in types of joint definitions
2020-10-09 14:55:32 +02:00
Oliver Zell
c86b574640
split shape classes in static and non-static interface again
2020-09-27 16:25:18 +02:00
Oliver Zell
70aee9feff
make properties of FixtureOpt optional in typings
2020-09-27 16:03:18 +02:00
Ali Shakiba
c40d9190d7
fix shape types
2020-08-23 18:54:15 -07:00
bystrano
6322496688
fix typo
2020-08-23 17:56:45 +02:00
Ali Shakiba
4b7564b44f
Merge pull request #135 from zOadT/master
...
Add some serializers for joints
2020-08-19 00:42:18 -07:00
Feavy
8e9e020119
Fixed shapes' creation function declaration in TypeScript definition
2020-08-16 21:49:07 +02:00
Ali Shakiba
6d99866214
remove internal fields from doc
2020-08-03 20:19:01 -07:00
Ali Shakiba
be43ac39b2
remove doc from serializer
2020-08-02 13:46:16 -07:00
Ali Shakiba
2a79ae0d55
add callback to serializer
2020-08-02 13:46:16 -07:00
Ali Shakiba
11afb0278c
add setter for fixture filters
2020-08-02 13:46:16 -07:00
Oliver Zell
8cbb48dfae
keep m_constant in GearJoint serializer
2020-08-02 09:33:02 +02:00
Oliver Zell
e66588e8c3
add GearJoint serializer
2020-08-02 09:20:47 +02:00
Ali Shakiba
39a42f0c12
use classes for types
2020-07-28 20:16:19 -07:00
Ali Shakiba
f836481831
bug fix chain serialize
2020-07-26 22:53:47 -07:00
Ali Shakiba
0ae0b81577
bug fix convex hull
2020-07-26 22:53:47 -07:00
Oliver Zell
8e41dbfcba
Serializer: handle properties of joints which are not in def
2020-07-26 14:41:27 +02:00
Oliver Zell
840c1cb518
quick fix PrismaticJoint serializer
2020-07-26 14:26:28 +02:00
Oliver Zell
cd2eb8789e
register missing joint types
2020-07-26 13:27:57 +02:00
Oliver Zell
cb87a7d819
add WeldJoint serializer
2020-07-23 19:40:35 +02:00
Oliver Zell
30c613ca88
add MouseJoint serializer
2020-07-23 19:33:24 +02:00
Oliver Zell
8cf27e4086
add RopeJoint serializer
2020-07-23 19:23:20 +02:00
Oliver Zell
a16abb792e
add PulleyJoint serializer
2020-07-23 19:17:02 +02:00
Oliver Zell
860d974f46
add PrismaticJoint serializer
2020-07-21 20:02:06 +02:00