place buildings

This commit is contained in:
Jim 2025-08-30 20:41:42 -04:00
parent b8c34a37b6
commit 2808f6dd2c
Signed by: jim
GPG key ID: 3D7D94BA53088BF4
14 changed files with 338 additions and 36 deletions

View file

@ -5,7 +5,7 @@
use avian3d::prelude::*;
use bevy::prelude::*;
use building::Building;
use combat::{GaveDamage, Health, Team};
use combat::{GaveDamage, Health};
use combat_damagers::ContactDamage;
use inhabitant::Inhabitant;
use state::GameSystemSet;
@ -76,7 +76,6 @@ fn explode(
// &SpatialQueryFilter::from_mask(Team::Inhabitant),
&SpatialQueryFilter::default(),
) {
info!("found hit");
if let Ok((gtf, mut v)) = other_query.get_mut(e) {
let delta = gtf.translation() - origin;
v.0 += delta.normalize_or_zero() * 10.0;