Skip to main content

create_entity_instance

Function create_entity_instance 

Source
pub(crate) fn create_entity_instance(
    world: &Arc<World>,
    entity_type: EntityTypeRef,
    position: DVec3,
) -> Result<SharedEntity, EntitySpawnError>
Expand description

Creates an entity instance through the generated entity factory registry.