Gizmo examples
The engine's gizmo examples: what each one shows, whether it runs in a browser and the command that runs it.
Immediate-mode debug drawing in 2D and 3D: lines, shapes, axes and light gizmos. There are 9 examples on this page. For the concepts behind them, see Gizmos.
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 |
|---|---|---|---|
| 2D Gizmos | A scene showcasing 2D gizmos | Yes | cargo run --example 2d_gizmos |
| 3D Gizmos | A scene showcasing 3D gizmos | Yes | cargo run --example 3d_gizmos --features free_camera |
| Anchored Text Gizmos | Demonstrates anchored text gizmos | Yes | cargo run --example anchored_text_gizmos |
| Axes | Demonstrates the function of axes gizmos | Yes | cargo run --example axes |
| Light Gizmos | A scene showcasing light gizmos | Yes | cargo run --example light_gizmos |
| Text Gizmos 2d | A scene showcasing 2d text gizmos | Yes | cargo run --example 2d_text_gizmos |
| Text Gizmos 3d | A scene showcasing 3d text gizmos | Yes | cargo run --example 3d_text_gizmos |
| Text Gizmos Font | Example displaying the font used by text gizmos | Yes | cargo run --example text_gizmos_font |
| Transform Gizmo | Interactive transform gizmo for translating, rotating, and scaling entities | Yes | cargo run --example transform_gizmo --features free_camera,neo_feathers |