Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 19 additions & 17 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "big_space"
version = "0.11.0"
version = "0.12.0"
edition = "2021"
description = "A floating origin plugin for bevy"
license = "MIT OR Apache-2.0"
Expand Down Expand Up @@ -38,39 +38,40 @@ libm = ["bevy_math/libm", "dep:libm"]

[dependencies]
smallvec = { version = "1.15.0", default-features = false } # Already used by bevy in commands
bevy_app = { version = "0.17.1", default-features = false, features = [
bevy_app = { version = "0.18.0", default-features = false, features = [
"bevy_reflect",
] }
bevy_ecs = { version = "0.17.1", default-features = false }
bevy_log = { version = "0.17.1", default-features = false }
bevy_math = { version = "0.17.1", default-features = false }
bevy_reflect = { version = "0.17.1", default-features = false, features = [
bevy_ecs = { version = "0.18.0", default-features = false }
bevy_log = { version = "0.18.0", default-features = false }
bevy_math = { version = "0.18.0", default-features = false }
bevy_reflect = { version = "0.18.0", default-features = false, features = [
"glam",
] }
bevy_tasks = { version = "0.17.1", default-features = false }
bevy_transform = { version = "0.17.1", default-features = false, features = [
bevy_tasks = { version = "0.18.0", default-features = false }
bevy_transform = { version = "0.18.0", default-features = false, features = [
"bevy-support",
"bevy_reflect",
] }
bevy_utils = { version = "0.17.1", default-features = false }
bevy_platform = { version = "0.17.1", default-features = false, features = [
bevy_utils = { version = "0.18.0", default-features = false }
bevy_platform = { version = "0.18.0", default-features = false, features = [
"alloc",
] }
# Optional
bevy_color = { version = "0.17.1", default-features = false, optional = true }
bevy_gizmos = { version = "0.17.1", default-features = false, optional = true }
bevy_camera = { version = "0.17.1", default-features = false, optional = true }
bevy_input = { version = "0.17.1", default-features = false, optional = true }
bevy_time = { version = "0.17.1", default-features = false, optional = true }
bevy_color = { version = "0.18.0", default-features = false, optional = true }
bevy_gizmos = { version = "0.18.0", default-features = false, optional = true }
bevy_camera = { version = "0.18.0", default-features = false, optional = true }
bevy_input = { version = "0.18.0", default-features = false, optional = true }
bevy_time = { version = "0.18.0", default-features = false, optional = true }
libm = { version = "0.2", default-features = false, optional = true }

[dev-dependencies]

bevy = { version = "0.17.1", default-features = false, features = [
"animation",
bevy = { version = "0.18.0", default-features = false, features = [
"bevy_animation",
"bevy_asset",
"bevy_color",
"bevy_gizmos",
"bevy_gizmos_render",
"bevy_gltf",
"bevy_log",
"bevy_pbr",
Expand Down Expand Up @@ -185,3 +186,4 @@ name = "split_screen"
path = "examples/split_screen.rs"
required-features = ["camera", "debug"]
doc-scrape-examples = false

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ https://github.com/user-attachments/assets/9ce5283f-7d48-47dc-beef-9a7626858ed4

| bevy | big_space |
|------|-----------|
| 0.18 | 0.12 |
| 0.17 | 0.11 |
| 0.16 | 0.10 |
| 0.15 | 0.8, 0.9 |
Expand Down
2 changes: 1 addition & 1 deletion examples/planets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ fn main() {
.build()
.enable::<BigSpaceValidationPlugin>(),
))
.insert_resource(AmbientLight {
.insert_resource(GlobalAmbientLight {
color: Color::WHITE,
brightness: 200.0,
..Default::default()
Expand Down
6 changes: 3 additions & 3 deletions examples/spatial_hash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ fn draw_partitions(
let center = [h.coord().x as i32, h.coord().y as i32, h.coord().z as i32];
let local_trans = Transform::from_translation(IVec3::from(center).as_vec3() * l)
.with_scale(Vec3::splat(l));
gizmos.cuboid(
gizmos.cube(
transform.mul_transform(local_trans),
Hsla::new(hue, 1.0, 0.5, 0.2),
);
Expand All @@ -127,7 +127,7 @@ fn draw_partitions(
let center = min + (size) * 0.5;
let local_trans = Transform::from_translation(center).with_scale(size + l * 2.0);

gizmos.cuboid(
gizmos.cube(
transform.mul_transform(local_trans),
Hsla::new(hue, 1.0, 0.5, 0.9),
);
Expand Down Expand Up @@ -352,9 +352,9 @@ fn setup_ui(mut commands: Commands, asset_server: Res<AssetServer>) {
padding: UiRect::all(Val::Px(16.)),
margin: UiRect::all(Val::Px(12.)),
border: UiRect::all(Val::Px(1.)),
border_radius: BorderRadius::all(Val::Px(8.0)),
..default()
},
BorderRadius::all(Val::Px(8.0)),
BorderColor::all(Color::linear_rgba(0.03, 0.03, 0.03, 0.95)),
BackgroundColor(Color::linear_rgba(0.012, 0.012, 0.012, 0.95)),
))
Expand Down
6 changes: 2 additions & 4 deletions src/debug.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,18 +46,16 @@ fn update_debug_bounds(
&Transform::from_scale(Vec3::splat(grid.cell_edge_length() * 0.999)),
);
if origin.is_none() {
gizmos.cuboid(transform, Color::linear_rgb(0.0, 1.0, 0.0));
gizmos.cube(transform, Color::linear_rgb(0.0, 1.0, 0.0));
} else {
// gizmos.cuboid(transform, Color::rgba(0.0, 0.0, 1.0, 0.5))
}
}
}

#[derive(Default, Reflect)]
#[derive(Default, Reflect, GizmoConfigGroup)]
struct BigSpaceGizmoConfig;

impl GizmoConfigGroup for BigSpaceGizmoConfig {}

/// Draw axes for grids.
fn update_grid_axes(
mut gizmos: Gizmos<BigSpaceGizmoConfig>,
Expand Down
Loading