This example is running in WebGL2 and should work in most browsers. You can check the WebGPU 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