diff options
Diffstat (limited to 'engine/src/collision.rs')
| -rw-r--r-- | engine/src/collision.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engine/src/collision.rs b/engine/src/collision.rs index 015ab58..3808754 100644 --- a/engine/src/collision.rs +++ b/engine/src/collision.rs @@ -18,6 +18,7 @@ pub struct BoxCollider impl BoxCollider { + #[must_use] pub fn for_mesh(mesh: &Mesh) -> Self { let furthest_dir_points = mesh.find_furthest_vertex_positions(); @@ -36,6 +37,7 @@ impl BoxCollider } } + #[must_use] pub fn offset(self, offset: Vec3<f32>) -> Self { Self { @@ -88,6 +90,7 @@ pub struct SphereCollider impl SphereCollider { + #[must_use] pub fn offset(self, offset: Vec3<f32>) -> Self { Self { |
