diff options
| author | Crozet Sébastien <developer@crozet.re> | 2020-09-21 18:29:32 +0200 |
|---|---|---|
| committer | Crozet Sébastien <developer@crozet.re> | 2020-09-28 15:27:25 +0200 |
| commit | 56f6051b047aded906b8a89cbc66672c6f1e698e (patch) | |
| tree | ad4d4d7ecea925fad66a73c8f253e4fd878748b8 /src/geometry/waabb.rs | |
| parent | 2dda0e5ce48ed0d93b4b0fa3098ba08f59a50a0a (diff) | |
| download | rapier-56f6051b047aded906b8a89cbc66672c6f1e698e.tar.gz rapier-56f6051b047aded906b8a89cbc66672c6f1e698e.tar.bz2 rapier-56f6051b047aded906b8a89cbc66672c6f1e698e.zip | |
Start adding incremental topology update for the WQuadtree.
Diffstat (limited to 'src/geometry/waabb.rs')
| -rw-r--r-- | src/geometry/waabb.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/geometry/waabb.rs b/src/geometry/waabb.rs index 0664a50..c04514a 100644 --- a/src/geometry/waabb.rs +++ b/src/geometry/waabb.rs @@ -150,6 +150,11 @@ impl WAABB { } } + pub fn replace(&mut self, i: usize, aabb: AABB<f32>) { + self.mins.replace(i, aabb.mins); + self.maxs.replace(i, aabb.maxs); + } + pub fn intersects_ray(&self, ray: &WRay, max_toi: SimdFloat) -> SimdBool { let _0 = SimdFloat::zero(); let _1 = SimdFloat::one(); |
