Animation examples
The engine's animation examples: what each one shows, whether it runs in a browser and the command that runs it.
Animation clips, graphs, masks, morph targets, easing and animated properties. There are 13 examples on this page. For the concepts behind them, see Animation.
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 |
|---|---|---|---|
| Animated Mesh | Plays an animation on a skinned glTF model of a fox | Yes | cargo run --example animated_mesh |
| Animated Mesh Control | Plays an animation from a skinned glTF with keyboard controls | Yes | cargo run --example animated_mesh_control |
| Animated Mesh Events | Plays an animation from a skinned glTF with events | Yes | cargo run --example animated_mesh_events |
| Animated Transform | Create and play an animation defined by code that operates on the Transform component | Yes | cargo run --example animated_transform |
| Animated UI | Shows how to use animation clips to animate UI properties | Yes | cargo run --example animated_ui |
| Animation Events | Demonstrate how to use animation events | Yes | cargo run --example animation_events |
| Animation Graph | Blends multiple animations together with a graph | Yes | cargo run --example animation_graph --features neo_feathers |
| Animation Masks | Demonstrates animation masks | Yes | cargo run --example animation_masks --features neo_feathers |
| Color animation | Demonstrates how to animate colors using mixing and splines in different color spaces | Yes | cargo run --example color_animation |
| Custom Skinned Mesh | Skinned mesh example with mesh and joints data defined in code | Yes | cargo run --example custom_skinned_mesh |
| Eased Motion | Demonstrates the application of easing curves to animate an object | Yes | cargo run --example eased_motion |
| Easing Functions | Showcases the built-in easing functions | Yes | cargo run --example easing_functions |
| Morph Targets | Plays an animation from a glTF file with meshes with morph targets | Yes | cargo run --example morph_targets |