generated from 2ndbeam/bevy-template
feat: Hidden collider bounds behind colliders feat
- Bump version to 0.4.0 - Fix lamp SpotLight position
This commit is contained in:
parent
c1f9c29fe7
commit
926c4e6644
4 changed files with 17 additions and 15 deletions
|
|
@ -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.),
|
||||
)],
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue