Support Warning
WebGPU is currently only supported on Chrome starting with version 113, and only on desktop. If they don't work on your configuration, you can check the WebGL2 examples here.parenting.rs:
//! Illustrates how to create parent-child relationships between entities and how parent transforms
//! are propagated to their descendants.
use *;
/// this component indicates what entities should rotate
;
/// rotates the parent, which will result in the child also rotating
/// set up a simple scene with a "parent" cube and a "child" cube