mirror of
https://github.com/kaosat-dev/Blender_bevy_components_workflow.git
synced 2024-11-22 20:00:53 +00:00
4afa0f5d7d
* feat(animation): added example & boilerplate * moved animations specific code to a different module * added multiple robots & foxes * added example of controlling animation based on distance from the player * removed obsolete files * added information about animation to READMEs * updated dependencies closes #26
14 lines
331 B
Rust
14 lines
331 B
Rust
use bevy::gltf::Gltf;
|
|
use bevy::prelude::*;
|
|
use bevy::utils::HashMap;
|
|
use bevy_asset_loader::prelude::*;
|
|
|
|
#[derive(AssetCollection, Resource)]
|
|
pub struct GameAssets {
|
|
#[asset(key = "world")]
|
|
pub world: Handle<Scene>,
|
|
|
|
#[asset(key = "models", collection(typed, mapped))]
|
|
pub models: HashMap<String, Handle<Gltf>>,
|
|
}
|