feat: Hidden collider bounds behind colliders feat

- Bump version to 0.4.0
- Fix lamp SpotLight position
This commit is contained in:
Alexey 2026-04-01 12:36:03 +03:00
commit 926c4e6644
4 changed files with 17 additions and 15 deletions

View file

@ -10,19 +10,17 @@ pub struct Lamp;
pub fn lamp_bundle(textures: &Res<LayoutTextures>, pos: Vec2, intensity: f32, radius: f32) -> impl Bundle {
(
SpotLight2d {
intensity,
radius,
source_width: meters(0.5),
cast_shadows: true,
..default()
},
Transform::from_xyz(pos.x, pos.y, 0.),
Sprite::from_image(textures.light.0.clone()),
children![
(
)
],
children![(
SpotLight2d {
intensity,
radius,
source_width: meters(0.5),
cast_shadows: true,
..default()
},
Transform::from_xyz(0., 1., 0.),
)],
)
}

View file

@ -98,6 +98,7 @@ impl Plugin for ExpeditionPlugin {
},
};
app.add_plugins((
#[cfg(feature = "colliders")]
RapierDebugRenderPlugin::default(),
RapierPhysicsPlugin::<()>::default()
.with_custom_initialization(rapier_init),