aboutsummaryrefslogtreecommitdiff
path: root/src/geometry/broad_phase_multi_sap/sap_proxy.rs
diff options
context:
space:
mode:
authorSébastien Crozet <developer@crozet.re>2022-10-30 17:23:49 +0100
committerGitHub <noreply@github.com>2022-10-30 17:23:49 +0100
commit6b9762694673d42671d58d9e2178b9c94fc39053 (patch)
tree12bd8ca98467a5f1113670c1bc17ed20f2e69c80 /src/geometry/broad_phase_multi_sap/sap_proxy.rs
parent2bf61c3bae542e2f17e7d25f602090bb3c117dbf (diff)
parent34b7ae32fd03803048b920c1429e026e06bff948 (diff)
downloadrapier-6b9762694673d42671d58d9e2178b9c94fc39053.tar.gz
rapier-6b9762694673d42671d58d9e2178b9c94fc39053.tar.bz2
rapier-6b9762694673d42671d58d9e2178b9c94fc39053.zip
Merge pull request #410 from dimforge/parry_up
Update to 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.rs8
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,