Skip to main content

create_wave

Function create_wave 

Source
pub fn create_wave(
    row_count: i32,
    column_count: i32,
    scale: Vec3,
    row_frequency: f32,
    column_frequency: f32,
    make_holes: bool,
) -> HeightFieldData
Expand description

Create a sinusoidal wave height field. (b3CreateWave)

Uses f32::sin (C sinf) to match the reference helpers, not Box3D’s deterministic sin approximation.