Skip to content

Commit

Permalink
Update patch
Browse files Browse the repository at this point in the history
Co-authored-by: François <mockersf@gmail.com>
  • Loading branch information
DJMcNab and mockersf committed Jan 6, 2022
1 parent cc9f814 commit 4f1b2df
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions examples/ecs/iter_combinations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,14 +127,19 @@ fn generate_bodies(
mass: Mass(500.0),
..Default::default()
})
.insert(PointLight {
color: Color::WHITE,
intensity: 400.,
range: 100.,
radius: star_radius,
..Default::default()
})
.insert(Star);
.insert(Star)
.with_children(|p| {
p.spawn_bundle(PointLightBundle {
point_light: PointLight {
color: Color::WHITE,
intensity: 400.0,
range: 100.0,
radius: star_radius,
..Default::default()
},
..Default::default()
});
});
commands.spawn_bundle(PerspectiveCameraBundle {
transform: Transform::from_xyz(0.0, 10.5, -30.0).looking_at(Vec3::ZERO, Vec3::Y),
..Default::default()
Expand Down

0 comments on commit 4f1b2df

Please sign in to comment.