diff options
| author | Sébastien Crozet <developer@crozet.re> | 2022-10-30 13:43:52 +0100 |
|---|---|---|
| committer | Sébastien Crozet <developer@crozet.re> | 2022-10-30 13:43:52 +0100 |
| commit | b5b3431a632b4927a8ccc46aaaadccbdf2c6bebf (patch) | |
| tree | 6bee4883f81c9f0882581fbb452da7864fb60ee6 /src/geometry/broad_phase_multi_sap/sap_proxy.rs | |
| parent | 8fd3e61c921894ac53b24c69bee757aaf061ccf9 (diff) | |
| download | rapier-b5b3431a632b4927a8ccc46aaaadccbdf2c6bebf.tar.gz rapier-b5b3431a632b4927a8ccc46aaaadccbdf2c6bebf.tar.bz2 rapier-b5b3431a632b4927a8ccc46aaaadccbdf2c6bebf.zip | |
Switch to the published parry 0.11
Diffstat (limited to 'src/geometry/broad_phase_multi_sap/sap_proxy.rs')
| -rw-r--r-- | src/geometry/broad_phase_multi_sap/sap_proxy.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/geometry/broad_phase_multi_sap/sap_proxy.rs b/src/geometry/broad_phase_multi_sap/sap_proxy.rs index dff46ff..9ddd8b9 100644 --- a/src/geometry/broad_phase_multi_sap/sap_proxy.rs +++ b/src/geometry/broad_phase_multi_sap/sap_proxy.rs @@ -1,7 +1,7 @@ use super::NEXT_FREE_SENTINEL; use crate::geometry::broad_phase_multi_sap::SAPRegion; use crate::geometry::ColliderHandle; -use parry::bounding_volume::AABB; +use parry::bounding_volume::Aabb; use std::ops::{Index, IndexMut}; pub type SAPProxyIndex = u32; @@ -51,7 +51,7 @@ impl SAPProxyData { #[derive(Clone)] pub struct SAPProxy { pub data: SAPProxyData, - pub aabb: AABB, + pub aabb: Aabb, pub next_free: SAPProxyIndex, // TODO: pack the layer_id and layer_depth into a single u16? pub layer_id: u8, @@ -59,7 +59,7 @@ pub struct SAPProxy { } impl SAPProxy { - pub fn collider(handle: ColliderHandle, aabb: AABB, layer_id: u8, layer_depth: i8) -> Self { + pub fn collider(handle: ColliderHandle, aabb: Aabb, layer_id: u8, layer_depth: i8) -> Self { Self { data: SAPProxyData::Collider(handle), aabb, @@ -69,7 +69,7 @@ impl SAPProxy { } } - pub fn subregion(subregion: Box<SAPRegion>, aabb: AABB, layer_id: u8, layer_depth: i8) -> Self { + pub fn subregion(subregion: Box<SAPRegion>, aabb: Aabb, layer_id: u8, layer_depth: i8) -> Self { Self { data: SAPProxyData::Region(Some(subregion)), aabb, |
