diff --git a/examples/3d/parenting.rs b/examples/3d/parenting.rs index 8601e98f616b1..e6f868596cb7f 100644 --- a/examples/3d/parenting.rs +++ b/examples/3d/parenting.rs @@ -1,7 +1,8 @@ use bevy::prelude::*; /// This example illustrates how to create parent->child relationships between entities how parent -/// transforms are propagated to their descendants +/// transforms are propagated to their descendants. +/// `Transform` can be inherited from any entity with both the `Transform` and `GlobalTransform` components. fn main() { App::new() .insert_resource(Msaa { samples: 4 }) @@ -11,26 +12,29 @@ fn main() { .run(); } -/// this component indicates what entities should rotate +/// This component indicates what entities should rotate. #[derive(Component)] struct Rotator; -/// rotates the parent, which will result in the child also rotating +/// Rotates the parent, which will result in the child also rotating. fn rotator_system(time: Res