pub struct HeightfieldGrid {
pub rows: usize,
pub cols: usize,
pub heights: Vec<f32>,
}Expand description
A baked heightfield collider grid: rows x cols world-space heights in
row-major order (row index increases along +Z, column index along +X),
matching the vertex order the heightfield mesh generator emits.
Fields§
§rows: usizeGrid rows, increasing along +Z.
cols: usizeGrid columns, increasing along +X.
heights: Vec<f32>World-space heights, row-major.
Auto Trait Implementations§
impl Freeze for HeightfieldGrid
impl RefUnwindSafe for HeightfieldGrid
impl Send for HeightfieldGrid
impl Sync for HeightfieldGrid
impl Unpin for HeightfieldGrid
impl UnsafeUnpin for HeightfieldGrid
impl UnwindSafe for HeightfieldGrid
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more