summaryrefslogtreecommitdiff
path: root/engine/src/collision.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2026-09-22 18:22:46 +0200
committerHampusM <hampus@hampusmat.com>2026-09-22 18:22:46 +0200
commitc73ab25c9dbe40284cfd38beaf31e2a20a9810de (patch)
tree51c5817a0c252a172c03a47e36886e563a4e623d /engine/src/collision.rs
parent2ccda0cd5f81909fddc74d95f960f781a64bcae1 (diff)
refactor(engine): fix portion of clippy lints
Diffstat (limited to 'engine/src/collision.rs')
-rw-r--r--engine/src/collision.rs3
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 {