Release v0.14
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
## Unreleased
|
## v0.14.0 (09 July 2022)
|
||||||
### Fixed
|
### Fixed
|
||||||
- Fix unpredictable broad-phase panic when using small colliders in the simulation.
|
- Fix unpredictable broad-phase panic when using small colliders in the simulation.
|
||||||
- Fix collision events being incorrectly generated for any shape that produces multiple
|
- Fix collision events being incorrectly generated for any shape that produces multiple
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "rapier2d-f64"
|
name = "rapier2d-f64"
|
||||||
version = "0.13.0"
|
version = "0.14.0"
|
||||||
authors = [ "Sébastien Crozet <developer@crozet.re>" ]
|
authors = [ "Sébastien Crozet <developer@crozet.re>" ]
|
||||||
description = "2-dimensional physics engine in Rust."
|
description = "2-dimensional physics engine in Rust."
|
||||||
documentation = "http://docs.rs/rapier2d"
|
documentation = "http://docs.rs/rapier2d"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "rapier2d"
|
name = "rapier2d"
|
||||||
version = "0.13.0"
|
version = "0.14.0"
|
||||||
authors = [ "Sébastien Crozet <developer@crozet.re>" ]
|
authors = [ "Sébastien Crozet <developer@crozet.re>" ]
|
||||||
description = "2-dimensional physics engine in Rust."
|
description = "2-dimensional physics engine in Rust."
|
||||||
documentation = "http://docs.rs/rapier2d"
|
documentation = "http://docs.rs/rapier2d"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "rapier3d-f64"
|
name = "rapier3d-f64"
|
||||||
version = "0.13.0"
|
version = "0.14.0"
|
||||||
authors = [ "Sébastien Crozet <developer@crozet.re>" ]
|
authors = [ "Sébastien Crozet <developer@crozet.re>" ]
|
||||||
description = "3-dimensional physics engine in Rust."
|
description = "3-dimensional physics engine in Rust."
|
||||||
documentation = "http://docs.rs/rapier3d"
|
documentation = "http://docs.rs/rapier3d"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "rapier3d"
|
name = "rapier3d"
|
||||||
version = "0.13.0"
|
version = "0.14.0"
|
||||||
authors = [ "Sébastien Crozet <developer@crozet.re>" ]
|
authors = [ "Sébastien Crozet <developer@crozet.re>" ]
|
||||||
description = "3-dimensional physics engine in Rust."
|
description = "3-dimensional physics engine in Rust."
|
||||||
documentation = "http://docs.rs/rapier3d"
|
documentation = "http://docs.rs/rapier3d"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "rapier_testbed2d-f64"
|
name = "rapier_testbed2d-f64"
|
||||||
version = "0.13.0"
|
version = "0.14.0"
|
||||||
authors = [ "Sébastien Crozet <developer@crozet.re>" ]
|
authors = [ "Sébastien Crozet <developer@crozet.re>" ]
|
||||||
description = "Testbed for the Rapier 2-dimensional physics engine in Rust."
|
description = "Testbed for the Rapier 2-dimensional physics engine in Rust."
|
||||||
homepage = "http://rapier.org"
|
homepage = "http://rapier.org"
|
||||||
@@ -38,7 +38,7 @@ bincode = "1"
|
|||||||
Inflector = "0.11"
|
Inflector = "0.11"
|
||||||
md5 = "0.7"
|
md5 = "0.7"
|
||||||
|
|
||||||
bevy_egui = "0.13"
|
bevy_egui = "0.14"
|
||||||
bevy_ecs = "0.7"
|
bevy_ecs = "0.7"
|
||||||
#bevy_prototype_debug_lines = "0.7"
|
#bevy_prototype_debug_lines = "0.7"
|
||||||
|
|
||||||
@@ -54,5 +54,5 @@ bevy = {version = "0.7", default-features = false, features = ["bevy_winit", "re
|
|||||||
[dependencies.rapier]
|
[dependencies.rapier]
|
||||||
package = "rapier2d-f64"
|
package = "rapier2d-f64"
|
||||||
path = "../rapier2d-f64"
|
path = "../rapier2d-f64"
|
||||||
version = "0.13.0"
|
version = "0.14.0"
|
||||||
features = [ "serde-serialize", "debug-render", "profiler" ]
|
features = [ "serde-serialize", "debug-render", "profiler" ]
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "rapier_testbed2d"
|
name = "rapier_testbed2d"
|
||||||
version = "0.13.0"
|
version = "0.14.0"
|
||||||
authors = [ "Sébastien Crozet <developer@crozet.re>" ]
|
authors = [ "Sébastien Crozet <developer@crozet.re>" ]
|
||||||
description = "Testbed for the Rapier 2-dimensional physics engine in Rust."
|
description = "Testbed for the Rapier 2-dimensional physics engine in Rust."
|
||||||
homepage = "http://rapier.org"
|
homepage = "http://rapier.org"
|
||||||
@@ -38,7 +38,7 @@ bincode = "1"
|
|||||||
Inflector = "0.11"
|
Inflector = "0.11"
|
||||||
md5 = "0.7"
|
md5 = "0.7"
|
||||||
|
|
||||||
bevy_egui = "0.13"
|
bevy_egui = "0.14"
|
||||||
bevy_ecs = "0.7"
|
bevy_ecs = "0.7"
|
||||||
#bevy_prototype_debug_lines = "0.7"
|
#bevy_prototype_debug_lines = "0.7"
|
||||||
|
|
||||||
@@ -54,5 +54,5 @@ bevy = {version = "0.7", default-features = false, features = ["bevy_winit", "re
|
|||||||
[dependencies.rapier]
|
[dependencies.rapier]
|
||||||
package = "rapier2d"
|
package = "rapier2d"
|
||||||
path = "../rapier2d"
|
path = "../rapier2d"
|
||||||
version = "0.13.0"
|
version = "0.14.0"
|
||||||
features = [ "serde-serialize", "debug-render", "profiler" ]
|
features = [ "serde-serialize", "debug-render", "profiler" ]
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "rapier_testbed3d-f64"
|
name = "rapier_testbed3d-f64"
|
||||||
version = "0.13.0"
|
version = "0.14.0"
|
||||||
authors = [ "Sébastien Crozet <developer@crozet.re>" ]
|
authors = [ "Sébastien Crozet <developer@crozet.re>" ]
|
||||||
description = "Testbed for the Rapier 3-dimensional physics engine in Rust."
|
description = "Testbed for the Rapier 3-dimensional physics engine in Rust."
|
||||||
homepage = "http://rapier.org"
|
homepage = "http://rapier.org"
|
||||||
@@ -36,7 +36,7 @@ md5 = "0.7"
|
|||||||
Inflector = "0.11"
|
Inflector = "0.11"
|
||||||
serde = { version = "1", features = [ "derive" ] }
|
serde = { version = "1", features = [ "derive" ] }
|
||||||
|
|
||||||
bevy_egui = "0.13"
|
bevy_egui = "0.14"
|
||||||
bevy_ecs = "0.7"
|
bevy_ecs = "0.7"
|
||||||
#bevy_prototype_debug_lines = { version = "0.7", features = [ "3d" ] }
|
#bevy_prototype_debug_lines = { version = "0.7", features = [ "3d" ] }
|
||||||
|
|
||||||
@@ -52,5 +52,5 @@ bevy = {version = "0.7", default-features = false, features = ["bevy_winit", "re
|
|||||||
[dependencies.rapier]
|
[dependencies.rapier]
|
||||||
package = "rapier3d-f64"
|
package = "rapier3d-f64"
|
||||||
path = "../rapier3d-f64"
|
path = "../rapier3d-f64"
|
||||||
version = "0.13.0"
|
version = "0.14.0"
|
||||||
features = [ "serde-serialize", "debug-render", "profiler" ]
|
features = [ "serde-serialize", "debug-render", "profiler" ]
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "rapier_testbed3d"
|
name = "rapier_testbed3d"
|
||||||
version = "0.13.0"
|
version = "0.14.0"
|
||||||
authors = [ "Sébastien Crozet <developer@crozet.re>" ]
|
authors = [ "Sébastien Crozet <developer@crozet.re>" ]
|
||||||
description = "Testbed for the Rapier 3-dimensional physics engine in Rust."
|
description = "Testbed for the Rapier 3-dimensional physics engine in Rust."
|
||||||
homepage = "http://rapier.org"
|
homepage = "http://rapier.org"
|
||||||
@@ -32,7 +32,7 @@ instant = { version = "0.1", features = [ "web-sys", "now" ]}
|
|||||||
bitflags = "1"
|
bitflags = "1"
|
||||||
glam = { version = "0.12", optional = true }
|
glam = { version = "0.12", optional = true }
|
||||||
num_cpus = { version = "1", optional = true }
|
num_cpus = { version = "1", optional = true }
|
||||||
physx = { version = "0.11", optional = true }
|
physx = { version = "0.12", features = [ "glam" ], optional = true }
|
||||||
physx-sys = { version = "0.4", optional = true }
|
physx-sys = { version = "0.4", optional = true }
|
||||||
crossbeam = "0.8"
|
crossbeam = "0.8"
|
||||||
bincode = "1"
|
bincode = "1"
|
||||||
@@ -40,7 +40,7 @@ md5 = "0.7"
|
|||||||
Inflector = "0.11"
|
Inflector = "0.11"
|
||||||
serde = { version = "1", features = [ "derive" ] }
|
serde = { version = "1", features = [ "derive" ] }
|
||||||
|
|
||||||
bevy_egui = "0.13"
|
bevy_egui = "0.14"
|
||||||
bevy_ecs = "0.7"
|
bevy_ecs = "0.7"
|
||||||
#bevy_prototype_debug_lines = { version = "0.7", features = [ "3d" ] }
|
#bevy_prototype_debug_lines = { version = "0.7", features = [ "3d" ] }
|
||||||
|
|
||||||
@@ -56,5 +56,5 @@ bevy = {version = "0.7", default-features = false, features = ["bevy_winit", "re
|
|||||||
[dependencies.rapier]
|
[dependencies.rapier]
|
||||||
package = "rapier3d"
|
package = "rapier3d"
|
||||||
path = "../rapier3d"
|
path = "../rapier3d"
|
||||||
version = "0.13.0"
|
version = "0.14.0"
|
||||||
features = [ "serde-serialize", "debug-render", "profiler" ]
|
features = [ "serde-serialize", "debug-render", "profiler" ]
|
||||||
@@ -170,7 +170,7 @@ impl Box2dWorld {
|
|||||||
|
|
||||||
fixture_def.restitution = collider.material().restitution;
|
fixture_def.restitution = collider.material().restitution;
|
||||||
fixture_def.friction = collider.material().friction;
|
fixture_def.friction = collider.material().friction;
|
||||||
fixture_def.density = collider.density().unwrap_or(1.0);
|
fixture_def.density = collider.density();
|
||||||
fixture_def.is_sensor = collider.is_sensor();
|
fixture_def.is_sensor = collider.is_sensor();
|
||||||
fixture_def.filter = b2::Filter::new();
|
fixture_def.filter = b2::Filter::new();
|
||||||
|
|
||||||
|
|||||||
@@ -78,10 +78,20 @@ impl IntoPhysx for Point3<f32> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl IntoPhysx for UnitQuaternion<f32> {
|
||||||
|
type Output = PxQuat;
|
||||||
|
fn into_physx(self) -> Self::Output {
|
||||||
|
PxQuat::new(self.i, self.j, self.k, self.w)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl IntoPhysx for Isometry3<f32> {
|
impl IntoPhysx for Isometry3<f32> {
|
||||||
type Output = PxTransform;
|
type Output = PxTransform;
|
||||||
fn into_physx(self) -> Self::Output {
|
fn into_physx(self) -> Self::Output {
|
||||||
self.into_glam().into()
|
PxTransform::from_translation_rotation(
|
||||||
|
&self.translation.vector.into_physx(),
|
||||||
|
&self.rotation.into_physx(),
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -164,7 +174,7 @@ impl PhysxWorld {
|
|||||||
gravity: gravity.into_physx(),
|
gravity: gravity.into_physx(),
|
||||||
thread_count: num_threads as u32,
|
thread_count: num_threads as u32,
|
||||||
broad_phase_type: BroadPhaseType::AutomaticBoxPruning,
|
broad_phase_type: BroadPhaseType::AutomaticBoxPruning,
|
||||||
solver_type: SolverType::PGS,
|
solver_type: SolverType::Pgs,
|
||||||
friction_type,
|
friction_type,
|
||||||
ccd_max_passes: integration_parameters.max_ccd_substeps as u32,
|
ccd_max_passes: integration_parameters.max_ccd_substeps as u32,
|
||||||
..SceneDescriptor::new(())
|
..SceneDescriptor::new(())
|
||||||
@@ -361,7 +371,7 @@ impl PhysxWorld {
|
|||||||
if rb.is_ccd_enabled() {
|
if rb.is_ccd_enabled() {
|
||||||
physx_sys::PxRigidBody_setRigidBodyFlag_mut(
|
physx_sys::PxRigidBody_setRigidBodyFlag_mut(
|
||||||
actor,
|
actor,
|
||||||
RigidBodyFlag::EnableCCD as u32,
|
RigidBodyFlag::EnableCcd as u32,
|
||||||
true,
|
true,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user