EP4LNSRP2UVYRMNAHL7AFADZWHP7E5VPMHGPJXRYR3JTA45ZINIQC
commands
.spawn()
.insert_bundle(GeometryBuilder::build_as(
&shape_ball,
ShapeColors::new(Color::RED),
DrawMode::Fill(FillOptions::default()),
Transform::default(),
))
.insert_bundle(RigidBodyBundle {
position: Vec2::new(0.5, 0.5).into(),
ccd,
..Default::default()
})
.insert_bundle(ColliderBundle {
shape: ColliderShape::ball(0.3),
material: collider_material.clone(),
..Default::default()
})
.insert(RigidBodyPositionSync::Discrete);
}