Skip to content

Commit d505a0c

Browse files
committed
fix(bevy_city): fix light rotation
1 parent cbfb937 commit d505a0c

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

examples/large_scenes/bevy_city/src/generate_city.rs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,10 +207,13 @@ fn spawn_roads_and_cars<R: RngExt>(
207207
}
208208
});
209209
let corners = [
210-
(Vec3::new(-0.4, 0.0, -0.4), 0.0_f32),
211-
(Vec3::new(0.4, 0.0, -0.4), std::f32::consts::FRAC_PI_2),
212-
(Vec3::new(0.4, 0.0, 0.4), std::f32::consts::PI),
213-
(Vec3::new(-0.4, 0.0, 0.4), 3.0 * std::f32::consts::FRAC_PI_2),
210+
(
211+
Vec3::new(-0.4, 0.0, -0.4),
212+
5.0 * std::f32::consts::FRAC_PI_4,
213+
),
214+
(Vec3::new(0.4, 0.0, -0.4), 3.0 * std::f32::consts::FRAC_PI_4),
215+
(Vec3::new(0.4, 0.0, 0.4), std::f32::consts::FRAC_PI_4),
216+
(Vec3::new(-0.4, 0.0, 0.4), 7.0 * std::f32::consts::FRAC_PI_4),
214217
];
215218
for (pos, rot) in corners {
216219
commands.spawn((

0 commit comments

Comments
 (0)