diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/geometry/collider.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/geometry/collider.rs b/src/geometry/collider.rs index 0101a09..c039ed5 100644 --- a/src/geometry/collider.rs +++ b/src/geometry/collider.rs @@ -246,6 +246,11 @@ impl Collider { self.co_shape = shape; } + /// Retrieve the SharedShape. Also see the `shape()` function + pub fn shared_shape(&self) -> &SharedShape { + &self.shape + } + /// Compute the axis-aligned bounding box of this collider. pub fn compute_aabb(&self) -> AABB { self.co_shape.compute_aabb(&self.co_pos) |
