make asteroids targetable

This commit is contained in:
yuni 2024-04-25 05:22:44 +02:00
parent 36cad88e77
commit e67aa16a93

View file

@ -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,
));