Skip to main content

spawn_objects

Function spawn_objects 

Source
pub fn spawn_objects(
    world: &mut World,
    object: Object,
    positions: &[Vec3],
) -> Vec<Entity>
Expand description

Spawns one Object at each position, all sharing a single registered material, which is what writing it longhand for a crowd looks like. A thousand entities through this hold one material entry, not a thousand.