fix light viz
This commit is contained in:
parent
efb70e16d0
commit
065af95aa0
1 changed files with 6 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue