Updated to Bevy 0.15.1
This commit is contained in:
@@ -4,15 +4,15 @@ version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
bevy = "0.14.2"
|
||||
bevy = "0.15.1"
|
||||
world_generation = { path = "../../engine/world_generation" }
|
||||
shared = { path = "../shared" }
|
||||
bevy_rapier3d = "0.27.0"
|
||||
bevy_rapier3d = "0.28.0"
|
||||
serde = { version = "1.0.204", features = ["derive"] }
|
||||
asset_loader = { path = "../../engine/asset_loader" }
|
||||
serde_json = "1.0.120"
|
||||
ron = "0.8.1"
|
||||
bevy_asset_loader = { version = "0.21.0", features = [
|
||||
bevy_asset_loader = { version = "0.22.0", features = [
|
||||
"standard_dynamic_assets",
|
||||
"3d",
|
||||
] }
|
||||
|
||||
@@ -34,11 +34,7 @@ fn spawn_test_unit(
|
||||
if let Some(contact) = tile_under_cursor.0 {
|
||||
info!("Spawning Test Unit");
|
||||
commands.spawn((
|
||||
PbrBundle {
|
||||
transform: Transform::from_translation(contact.surface),
|
||||
mesh: unit.0.clone(),
|
||||
..default()
|
||||
},
|
||||
(Transform::from_translation(contact.surface), Mesh3d(unit.0.clone())),
|
||||
Unit,
|
||||
LandUnit,
|
||||
));
|
||||
|
||||
@@ -71,7 +71,7 @@ fn move_unit(
|
||||
path.1 += 1;
|
||||
continue;
|
||||
}
|
||||
let vel = d.normalize() * 10.0 * time.delta_seconds();
|
||||
let vel = d.normalize() * 10.0 * time.delta_secs();
|
||||
t.translation += vel;
|
||||
let coord = HexCoord::from_world_pos(t.translation);
|
||||
if map.is_in_bounds(&coord) {
|
||||
|
||||
Reference in New Issue
Block a user