Skip to main content

spawn_sphere

Function spawn_sphere 

Source
pub fn spawn_sphere<'a>(
    world: &'a mut GameWorld,
    radius: f32,
    segments: u32,
    rings: u32,
) -> Vessel<'a>
Expand description

Creates a Vessel with a sphere mesh at the origin.

Attaches an authored MeshRef::Procedural; see spawn_plane for the resolution flow.