#[repr(C)]pub struct b3HeightFieldDef {
pub heights: *mut f32,
pub materialIndices: *mut u8,
pub scale: b3Vec3,
pub countX: c_int,
pub countZ: c_int,
pub globalMinimumHeight: f32,
pub globalMaximumHeight: f32,
pub clockwiseWinding: bool,
}Expand description
Data used to create a height field
Fields§
§heights: *mut f32Grid point heights count = countX * countZ
materialIndices: *mut u8Grid cell material A value of 0xFF is reserved for holes count = (countX - 1) * (countZ - 1)
scale: b3Vec3The height field scale. All components must be positive values.
countX: c_intThe number of grid lines along the x-axis.
countZ: c_intThe number of grid lines along the z-axis.
globalMinimumHeight: f32Global minimum and maximum heights used for quantization. This is important if you want height fields to be placed next to each other and line up exactly. In that case, both height fields should use the same minimum and maximum heights. All height values are clamped to this range. These values are in unscaled space.
globalMaximumHeight: f32The maximum.
clockwiseWinding: boolUse clock-wise winding. This effectively inverts the height-field along the y-axis.
Trait Implementations§
Source§impl Clone for b3HeightFieldDef
impl Clone for b3HeightFieldDef
Source§fn clone(&self) -> b3HeightFieldDef
fn clone(&self) -> b3HeightFieldDef
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 moreimpl Copy for b3HeightFieldDef
Auto Trait Implementations§
impl !Send for b3HeightFieldDef
impl !Sync for b3HeightFieldDef
impl Freeze for b3HeightFieldDef
impl RefUnwindSafe for b3HeightFieldDef
impl Unpin for b3HeightFieldDef
impl UnsafeUnpin for b3HeightFieldDef
impl UnwindSafe for b3HeightFieldDef
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