From 2f99b527d021c4475846b37c7d11acb7c18d429f Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Mon, 13 Feb 2023 23:23:04 +0800 Subject: [PATCH] use rapier2d-f64 --- libs/Difficult_Rocket_rs/src/Cargo.lock | 12 ++++++------ libs/Difficult_Rocket_rs/src/Cargo.toml | 4 ++-- libs/Difficult_Rocket_rs/src/src/simulator.rs | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/libs/Difficult_Rocket_rs/src/Cargo.lock b/libs/Difficult_Rocket_rs/src/Cargo.lock index af4b105..24d6ae3 100644 --- a/libs/Difficult_Rocket_rs/src/Cargo.lock +++ b/libs/Difficult_Rocket_rs/src/Cargo.lock @@ -119,7 +119,7 @@ name = "difficult_rocket_rs" version = "0.2.0" dependencies = [ "pyo3", - "rapier2d", + "rapier2d-f64", ] [[package]] @@ -303,10 +303,10 @@ dependencies = [ ] [[package]] -name = "parry2d" +name = "parry2d-f64" version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a2342b33d77a0393879b1b85eac2a30cc4b36d10b30e111f55a5e9280cf5eb87" +checksum = "70f96abf23f15f0bb4d998a96bcdc58915519a2de8828a809f1ea57b431c4d1f" dependencies = [ "approx", "arrayvec", @@ -408,10 +408,10 @@ dependencies = [ ] [[package]] -name = "rapier2d" +name = "rapier2d-f64" version = "0.17.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dcd37fc7fad61534f35ce9cb198283cd7055c08cdc4a1565d0974a1fe74d5e59" +checksum = "fed947265b7e68da6b33b9025abea0a4e4c79fdab464b85757b2cbfd6fe69b0a" dependencies = [ "approx", "arrayvec", @@ -422,7 +422,7 @@ dependencies = [ "nalgebra", "num-derive", "num-traits", - "parry2d", + "parry2d-f64", "rustc-hash", "simba", "vec_map", diff --git a/libs/Difficult_Rocket_rs/src/Cargo.toml b/libs/Difficult_Rocket_rs/src/Cargo.toml index b71e04b..4bfc5bc 100644 --- a/libs/Difficult_Rocket_rs/src/Cargo.toml +++ b/libs/Difficult_Rocket_rs/src/Cargo.toml @@ -8,10 +8,10 @@ license-file = '../../LICENSE' [dependencies] [lib] -name = 'Difficult_Rocket_rs' +name = 'difficult_rocket_rs' crate-type = ["cdylib"] -[dependencies.rapier2d] +[dependencies.rapier2d-f64] version = "0.17.1" features = ["simd-stable"] diff --git a/libs/Difficult_Rocket_rs/src/src/simulator.rs b/libs/Difficult_Rocket_rs/src/src/simulator.rs index 13caf5e..fe5d11f 100644 --- a/libs/Difficult_Rocket_rs/src/src/simulator.rs +++ b/libs/Difficult_Rocket_rs/src/src/simulator.rs @@ -6,7 +6,7 @@ * ------------------------------- */ -use rapier2d::prelude::*; +use rapier2d_f64::prelude::*; use pyo3::prelude::*; #[pyfunction]