Function bevy_mod_bounding::spawn[][src]

pub fn spawn<T: 'static + BoundingVolume + Send + Sync + Debug>(
    commands: Commands<'_>,
    meshes: Res<'_, Assets<Mesh>>,
    query: Query<'_, (&Handle<Mesh>, &GlobalTransform, Entity), With<Bounded<T>>>
)

Spawns a new BoundingVolume, replacing the [AddBoundingVolume] marker component on the entity. This new BoundingVolume is fully initialized and will be kept up to date with the update() system.