pub struct HeightFieldDef {
pub heights: Vec<f32>,
pub material_indices: Vec<u8>,
pub scale: Vec3,
pub count_x: i32,
pub count_z: i32,
pub global_minimum_height: f32,
pub global_maximum_height: f32,
pub clockwise_winding: bool,
}Expand description
Data used to create a height field. (b3HeightFieldDef)
Fields§
§heights: Vec<f32>Grid point heights; length = count_x * count_z.
material_indices: Vec<u8>Grid cell material; length = (count_x - 1) * (count_z - 1).
A value of HEIGHT_FIELD_HOLE marks a hole.
scale: Vec3The height field scale. All components must be positive.
count_x: i32Number of grid lines along the x-axis.
count_z: i32Number of grid lines along the z-axis.
global_minimum_height: f32Global minimum height for quantization (unscaled).
global_maximum_height: f32Global maximum height for quantization (unscaled).
clockwise_winding: boolClock-wise winding (inverts the height-field along y).
Trait Implementations§
Source§impl Clone for HeightFieldDef
impl Clone for HeightFieldDef
Source§fn clone(&self) -> HeightFieldDef
fn clone(&self) -> HeightFieldDef
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HeightFieldDef
impl Debug for HeightFieldDef
Auto Trait Implementations§
impl Freeze for HeightFieldDef
impl RefUnwindSafe for HeightFieldDef
impl Send for HeightFieldDef
impl Sync for HeightFieldDef
impl Unpin for HeightFieldDef
impl UnsafeUnpin for HeightFieldDef
impl UnwindSafe for HeightFieldDef
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