Skip to content

Commit 82b8124

Browse files
committed
Update the typescript part of the bindings.
1 parent 91b6887 commit 82b8124

32 files changed

+1026
-333
lines changed

CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
1+
### 0.8.0-alpha.0 (2022-01-16)
2+
This release updates to Rapier 0.12.0-alpha.0 which contains:
3+
- A **complete rewrite** of the joint and contact constraint solver.
4+
- The support for locking individual translation axes.
5+
- The support for multibody joint.
6+
7+
This is an **alpha** release because the new solver still needs some tuning,
8+
and the spherical joint motors/limits is currently not working.
9+
10+
#### Breaking changes
11+
- In 3D: renamed `BallJoint` to `SphericalJoint`.
12+
- In 2D: renamed `BallJoint` to `RevoluteJoint`.
13+
- Remove the joint motors and limits for the spherical joint (this is a temporary removal until with leave alpha).
14+
- All the joint-related structures and methods (`RevoluteJoint`, `PrismaticJoint`, `createJoint`, etc.) have renamed to
15+
include `impulse` in the names: `RevoluteImpulseJoint`, `PrismaticImpulseJoint`, `createImpulseJoint`, etc. This is
16+
to differentiate them from the new multibody joints.
17+
- Remove from the integration parameters all the parameters that are no longer meaningful (`maxPositionIterations`,
18+
`jointErp`, `warmstartCoeff`, `allowedAngularError`, `maxLinearCorrection`, `maxAngularCorrection`).
19+
20+
#### Added
21+
- Add multibody joints. They are created the same way as impulse joints, except that they are created
22+
by `world.createMultibodyJoint` instead of `world.createImpulseJoint`.
23+
- Add the ability to lock individual translation axes. Use `rigidBody.restrictTranslation`.
24+
25+
126
### 0.7.6
227
This release updates to Rapier 0.11.1 which contains several bug fixes.
328

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ codegen-units = 1
77
#lto = true
88

99
[patch.crates-io]
10-
rapier2d = { path = "../rapier/crates/rapier2d" }
11-
rapier3d = { path = "../rapier/crates/rapier3d" }
10+
#rapier2d = { path = "../rapier/crates/rapier2d" }
11+
#rapier3d = { path = "../rapier/crates/rapier3d" }
1212
#parry2d = { path = "../parry/crates/parry2d" }
1313
#parry3d = { path = "../parry/crates/parry3d" }
1414
#nalgebra = { path = "../nalgebra" }

rapier2d/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[package]
22
name = "dimforge_rapier2d" # Can't be named rapier2d which conflicts with the dependency.
3-
version = "0.7.6"
3+
version = "0.8.0-alpha.0"
44
authors = ["Sébastien Crozet <developer@crozet.re>"]
55
description = "2-dimensional physics engine in Rust - official JS bindings."
6-
documentation = "http://rapier.rs/rustdoc/rapier2d/index.html"
6+
documentation = "https://rapier.rs/rustdoc/rapier2d/index.html"
77
homepage = "https://rapier.rs"
88
repository = "https://github.com/dimforge/rapier.js"
99
readme = "README.md"
@@ -23,7 +23,7 @@ required-features = ["dim2"]
2323

2424

2525
[dependencies]
26-
rapier2d = { version = "^0.12.0-alpha.0", features = ["wasm-bindgen", "serde-serialize", "enhanced-determinism"] }
26+
rapier2d = { version = "^0.12.0-alpha.1", features = ["wasm-bindgen", "serde-serialize", "enhanced-determinism"] }
2727
ref-cast = "1"
2828
wasm-bindgen = "0.2"
2929
js-sys = "0.3"

rapier3d/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[package]
22
name = "dimforge_rapier3d" # Can't be named rapier3d which conflicts with the dependency.
3-
version = "0.7.6"
3+
version = "0.8.0-alpha.0"
44
authors = ["Sébastien Crozet <developer@crozet.re>"]
55
description = "3-dimensional physics engine in Rust - official JS bindings."
6-
documentation = "http://rapier.rs/rustdoc/rapier2d/index.html"
6+
documentation = "https://rapier.rs/rustdoc/rapier2d/index.html"
77
homepage = "https://rapier.rs"
88
repository = "https://github.com/dimforge/rapier.js"
99
readme = "README.md"
@@ -23,7 +23,7 @@ required-features = ["dim3"]
2323

2424

2525
[dependencies]
26-
rapier3d = { version = "^0.12.0-alpha.0", features = ["wasm-bindgen", "serde-serialize", "enhanced-determinism"] }
26+
rapier3d = { version = "^0.12.0-alpha.1", features = ["wasm-bindgen", "serde-serialize", "enhanced-determinism"] }
2727
ref-cast = "1"
2828
wasm-bindgen = "0.2"
2929
js-sys = "0.3"

0 commit comments

Comments
 (0)