B:BD[
2.1252] → [
2.1252:1482]
commands.spawn(Text2dBundle{
text: Text::from_section("translation without word", text_style.clone()).with_alignment(text_alignment),
transform: Transform::from_xyz(200., 300., 0.),
..default()
});
let text_alignment = TextAlignment::Center;
commands.spawn((Text2dBundle{
text: Text::from_section("translation", text_style.clone()).with_alignment(text_alignment),
transform: Transform::from_xyz(0., 300., 0.),
text_2d_bounds: Text2dBounds{
size: MAX_TEXT_SIZE,
},
..default()
}, Word, Collider::cuboid(MAX_TEXT_SIZE.x, MAX_TEXT_SIZE.y), RigidBody::Dynamic));
}