Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ parry2d = { path = "build/parry2d" }
parry3d = { path = "build/parry3d" }
parry2d-f64 = { path = "build/parry2d-f64" }
parry3d-f64 = { path = "build/parry3d-f64" }
bevy = {path = "../bevy"}
2 changes: 2 additions & 0 deletions build/parry2d-f64/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ enhanced-determinism = [ "simba/libm_force", "indexmap" ]
# Do not enable this feature directly. It is automatically
# enabled with the "simd-stable" or "simd-nightly" feature.
simd-is-enabled = [ ]
bevy-components = ["bevy"]

[lib]
name = "parry2d_f64"
Expand All @@ -48,6 +49,7 @@ serde = { version = "1.0", optional = true, features = ["derive"]}
num-derive = "0.3"
indexmap = { version = "1", features = [ "serde-1" ], optional = true }
rustc-hash = "1"
bevy = { version = "0.5", default-features = false, optional = true }

[dev-dependencies]
simba = { version = "0.6", features = [ "partial_fixed_point_support" ] }
Expand Down
2 changes: 2 additions & 0 deletions build/parry2d/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ enhanced-determinism = [ "simba/libm_force", "indexmap" ]
# Do not enable this feature directly. It is automatically
# enabled with the "simd-stable" or "simd-nightly" feature.
simd-is-enabled = [ ]
bevy-components = ["bevy"]

[lib]
name = "parry2d"
Expand All @@ -48,6 +49,7 @@ serde = { version = "1.0", optional = true, features = ["derive"]}
num-derive = "0.3"
indexmap = { version = "1", features = [ "serde-1" ], optional = true }
rustc-hash = "1"
bevy = { version = "0.5", default-features = false, optional = true }

[dev-dependencies]
simba = { version = "0.6", features = [ "partial_fixed_point_support" ] }
Expand Down
3 changes: 2 additions & 1 deletion build/parry3d-f64/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ enhanced-determinism = [ "simba/libm_force", "indexmap" ]
# Do not enable this feature directly. It is automatically
# enabled with the "simd-stable" or "simd-nightly" feature.
simd-is-enabled = [ ]
bevy-components = ["bevy"]

[lib]
name = "parry3d_f64"
Expand All @@ -47,7 +48,7 @@ serde = { version = "1.0", optional = true, features = ["derive", "rc"]}
num-derive = "0.3"
indexmap = { version = "1", features = [ "serde-1" ], optional = true }
rustc-hash = "1"

bevy = { version = "0.5", default-features = false, optional = true }

[dev-dependencies]
oorandom = "11"
3 changes: 2 additions & 1 deletion build/parry3d/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ enhanced-determinism = [ "simba/libm_force", "indexmap" ]
# Do not enable this feature directly. It is automatically
# enabled with the "simd-stable" or "simd-nightly" feature.
simd-is-enabled = [ ]
bevy-components = ["bevy"]

[lib]
name = "parry3d"
Expand All @@ -47,7 +48,7 @@ serde = { version = "1.0", optional = true, features = ["derive", "rc"]}
num-derive = "0.3"
indexmap = { version = "1", features = [ "serde-1" ], optional = true }
rustc-hash = "1"

bevy = { version = "0.5", default-features = false, optional = true }

[dev-dependencies]
oorandom = "11"
1 change: 1 addition & 0 deletions src/shape/shared_shape.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ use std::sync::Arc;

/// The shape of a collider.
#[derive(Clone)]
#[cfg_attr(feature = "bevy-components", derive(bevy::prelude::Component))]
pub struct SharedShape(pub Arc<dyn Shape>);

impl Deref for SharedShape {
Expand Down