place buildings
This commit is contained in:
parent
b8c34a37b6
commit
2808f6dd2c
14 changed files with 338 additions and 36 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue