aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/geometry/collider.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/geometry/collider.rs b/src/geometry/collider.rs
index 2b08a96..f6417fc 100644
--- a/src/geometry/collider.rs
+++ b/src/geometry/collider.rs
@@ -244,6 +244,11 @@ impl Collider {
self.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.shape.compute_aabb(&self.position)