aboutsummaryrefslogtreecommitdiff
path: root/src_testbed/objects
diff options
context:
space:
mode:
authorSébastien Crozet <developer@crozet.re>2023-01-15 13:01:27 +0100
committerGitHub <noreply@github.com>2023-01-15 13:01:27 +0100
commitff4c885195eb6adef2a318134aedcb985b6e88b4 (patch)
treef797275613e2fac3e423f647363bcf74c5a0ccd3 /src_testbed/objects
parent56aa0f5e732a2f810b5c1d5834905791f542cf48 (diff)
parent3f5c0335e45a75ba435ef7dee3d203b11ec072d0 (diff)
downloadrapier-ff4c885195eb6adef2a318134aedcb985b6e88b4.tar.gz
rapier-ff4c885195eb6adef2a318134aedcb985b6e88b4.tar.bz2
rapier-ff4c885195eb6adef2a318134aedcb985b6e88b4.zip
Merge pull request #436 from dimforge/release-v0.17
Release v0.17.0
Diffstat (limited to 'src_testbed/objects')
-rw-r--r--src_testbed/objects/node.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src_testbed/objects/node.rs b/src_testbed/objects/node.rs
index ba7a2aa..f4b9015 100644
--- a/src_testbed/objects/node.rs
+++ b/src_testbed/objects/node.rs
@@ -44,7 +44,7 @@ impl EntityWithGraphics {
color: Point3<f32>,
sensor: bool,
) -> Self {
- let entity = commands.spawn().id();
+ let entity = commands.spawn_empty().id();
let scale = collider_mesh_scale(shape);
let mesh = prefab_meshs
@@ -108,7 +108,7 @@ impl EntityWithGraphics {
};
let mut entity_commands = commands.entity(entity);
- entity_commands.insert_bundle(bundle);
+ entity_commands.insert(bundle);
if sensor {
entity_commands.insert(Wireframe);