Transform examples
The engine's transform examples: what each one shows, whether it runs in a browser and the command that runs it.
Moving, rotating and scaling entities, and how transforms combine through the hierarchy. There are 5 examples on this page. For the concepts behind them, see Transforms.
Run any of them from the engine core's workspace (the folder of the engine source that holds the neo crate's Cargo.toml); see Run an example.
Examples#
| Example | What it shows | Web | Run |
|---|---|---|---|
| 3D Rotation | Illustrates how to (constantly) rotate an object around an axis | Yes | cargo run --example 3d_rotation |
| Alignment | A demonstration of Transform's axis-alignment feature | Yes | cargo run --example align |
| Scale | Illustrates how to scale an object in each direction | Yes | cargo run --example scale |
| Transform | Shows multiple transformations of objects | Yes | cargo run --example transform |
| Translation | Illustrates how to move an object along an axis | Yes | cargo run --example translation |