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.translation.rs:
//! Illustrates how to move an object along an axis.
use *;
// Define a struct to keep some information about our entity.
// Here it's an arbitrary movement speed, the spawn location, and a maximum distance from it.
// Implement a utility function for easier Movable struct creation.
// Startup system to setup the scene and spawn all relevant entities.
// This system will move all Movable entities with a Transform