From f6dd6a5ca9506aff9ff135d1118f9b75c037a986 Mon Sep 17 00:00:00 2001 From: Carter Anderson Date: Mon, 9 Mar 2020 01:31:15 -0700 Subject: [PATCH] fix parenting example, add missing transform components, add parenting to world builder --- examples/parenting.rs | 112 ++++++++++++---------------------- src/ecs/default_archetypes.rs | 4 ++ src/ecs/world_builder.rs | 24 ++++++++ 3 files changed, 67 insertions(+), 73 deletions(-) diff --git a/examples/parenting.rs b/examples/parenting.rs index 57ed1cb1ac..7d91bdfc06 100644 --- a/examples/parenting.rs +++ b/examples/parenting.rs @@ -10,12 +10,13 @@ fn main() { .run(); } +// rotates the parent, which will result in the child also rotating fn build_rotator_system() -> Box { SystemBuilder::new("Rotator") .read_resource::