@@ 84,7 84,11 @@ impl Default for VisualCardBundle {
global_transform: GlobalTransform::default(),
visibility: Visibility::default(),
computed_visibility: ComputedVisibility::default(),
- collider: Collider::cuboid(VisualCard::ASPECT_RATIO / 2., VisualCard::ASPECT_RATIO, 0.01),
+ collider: Collider::cuboid(
+ VisualCard::ASPECT_RATIO / 2.,
+ VisualCard::ASPECT_RATIO,
+ 0.01,
+ ),
rigid_body: RigidBody::Dynamic,
}
}
@@ 118,12 122,12 @@ impl FromWorld for VisualCardData {
font_medium: asset_server.load("fonts/FiraMono-Medium.ttf#mesh"),
font_bold: asset_server.load("fonts/FiraMono-Bold.ttf#mesh"),
mesh: meshes.add(
- shape::Quad {
- size: Vec2::new(VisualCard::ASPECT_RATIO / 2., VisualCard::ASPECT_RATIO),
- ..Default::default()
- }
- .into(),
- ),
+ shape::Quad {
+ size: Vec2::new(VisualCard::ASPECT_RATIO / 2., VisualCard::ASPECT_RATIO),
+ ..Default::default()
+ }
+ .into(),
+ ),
card_background: materials.add(card_background_material),
}
}