From e67aa16a9326c2550c5a4d744f0c60c0c7cbcf93 Mon Sep 17 00:00:00 2001 From: hut Date: Thu, 25 Apr 2024 05:22:44 +0200 Subject: [PATCH] make asteroids targetable --- src/world.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/world.rs b/src/world.rs index 3ab8f01..9719f80 100644 --- a/src/world.rs +++ b/src/world.rs @@ -304,6 +304,10 @@ fn spawn_despawn_asteroids( Collider::sphere(1.0), Rotation::from(Quat::from_rotation_y(-PI / 3.)), Position::new(pos), + hud::IsClickable { + name: Some("Uncharted Rock".to_string()), + ..default() + }, Asteroid, DespawnOnPlayerDeath, ));