projectile system
This commit is contained in:
parent
918b4884b2
commit
ad4a2cf393
17 changed files with 400 additions and 23 deletions
|
|
@ -2,7 +2,6 @@
|
|||
#![allow(clippy::type_complexity)]
|
||||
#![allow(clippy::too_many_arguments)]
|
||||
|
||||
use avian3d::prelude::*;
|
||||
use bevy::prelude::*;
|
||||
use building::{BuildingInfo, BuildingPreview, PREVIEW_ALPHA, PopulatePlacedBuilding};
|
||||
use combat::{Defense, Health};
|
||||
|
|
@ -82,12 +81,10 @@ fn populate(
|
|||
return;
|
||||
}
|
||||
commands.entity(trigger.target()).insert((
|
||||
RigidBody::Static,
|
||||
Impaler,
|
||||
Health::new(20.0),
|
||||
Defense::new(5.0),
|
||||
ContactDamage { amount: 5.0 },
|
||||
Name::from("Impaler"),
|
||||
ContactDamage::new(5.0),
|
||||
Mesh3d(res.mesh.clone()),
|
||||
MeshMaterial3d(res.material.clone()),
|
||||
));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue