diff --git a/Cargo.toml b/Cargo.toml index 69b01613..f1724916 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,7 @@ publish = false crate-type = ["cdylib"] [features] -default = ["build2d", "test"] +default = ["build3d", "test"] test = [] build2d = ["single-dim2", "serde-serialize", "simd-stable"] build3d = ["single-dim3", "serde-serialize", "simd-stable"] diff --git a/bin2d/addons/godot-rapier2d/plugin.info.cfg b/bin2d/addons/godot-rapier2d/plugin.info.cfg index 596a5628..189cbb0d 100644 --- a/bin2d/addons/godot-rapier2d/plugin.info.cfg +++ b/bin2d/addons/godot-rapier2d/plugin.info.cfg @@ -3,6 +3,6 @@ name="Godot Rapier 2D" description="A 2D and 3D drop-in replacement for the Godot engine that adds stability and fluids." author="appsinacup" -version="0.8.7" +version="0.8.8" flavour="" script="" diff --git a/bin3d/addons/godot-rapier3d/plugin.info.cfg b/bin3d/addons/godot-rapier3d/plugin.info.cfg index 0f3c5c01..5f22bfcb 100644 --- a/bin3d/addons/godot-rapier3d/plugin.info.cfg +++ b/bin3d/addons/godot-rapier3d/plugin.info.cfg @@ -3,6 +3,6 @@ name="Godot Rapier 3D" description="A 2D and 3D drop-in replacement for the Godot engine that adds stability and fluids." author="appsinacup" -version="0.8.7" +version="0.8.8" flavour="" script="" diff --git a/src/bodies/rapier_body.rs b/src/bodies/rapier_body.rs index 2d31de34..673a0da1 100644 --- a/src/bodies/rapier_body.rs +++ b/src/bodies/rapier_body.rs @@ -411,7 +411,6 @@ impl RapierBody { } else { self.axis_lock & (!axis.ord() as u8) }; - #[cfg(feature = "dim3")] self.apply_axis_lock(physics_engine); } @@ -420,11 +419,6 @@ impl RapierBody { if !self.base.is_valid() { return; } - if self.base.mode == BodyMode::RIGID_LINEAR { - self.axis_lock |= LockedAxes::ROTATION_LOCKED.bits(); - } else { - self.axis_lock &= !LockedAxes::ROTATION_LOCKED.bits(); - } if let Some(axis_lock) = LockedAxes::from_bits(self.axis_lock) { physics_engine.body_set_axis_lock( self.base.get_space_id(),