fix light viz

This commit is contained in:
Joe Ardent 2023-01-20 17:21:12 -08:00
parent efb70e16d0
commit 065af95aa0

View file

@ -53,13 +53,14 @@ fn spawn_moving_lights(
..Default::default()
};
let sbundle = SpatialBundle {
transform: Transform::from_rotation(rotation),
..Default::default()
};
commands
// first, spawn an entity with a transform we can rotate
.spawn((
AnimatedCyberLight { axis, rate },
Transform::from_rotation(rotation),
GlobalTransform::default(),
))
.spawn((AnimatedCyberLight { axis, rate },))
.insert(sbundle)
.with_children(|parent| {
parent
// now spawn a child entity with a pointlight, and a relative transform that's