Skip to main content

create_wave_mesh

Function create_wave_mesh 

Source
pub fn create_wave_mesh(
    x_count: i32,
    z_count: i32,
    cell_width: f32,
    amplitude: f32,
    row_frequency: f32,
    column_frequency: f32,
) -> Option<MeshData>
Expand description

Create a wave mesh along the x and z axes. (b3CreateWaveMesh)

Uses f32::sin (C sinf) for heights — not the deterministic b3Sin.