#[non_exhaustive]pub struct TileConfig {Show 21 fields
pub cells: i32,
pub cs: f32,
pub ch: f32,
pub walkable_height: i32,
pub crouch_height: i32,
pub prone_height: i32,
pub walkable_climb: i32,
pub walkable_radius: i32,
pub deep_water: i32,
pub sea_level: i32,
pub border_size: i32,
pub width: i32,
pub pad: f32,
pub max_simplification_error: f32,
pub max_edge_len: i32,
pub max_vertical_error: f32,
pub min_region_area: i32,
pub merge_region_area: i32,
pub nvp: usize,
pub door_radius: i32,
pub slope_threshold: f32,
}Expand description
The Recast configuration derived from the world and a cell class (spec 4). Sizes in voxels unless noted.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.cells: i32Cells across the tile (tileSize).
cs: f32Cell size in metres.
ch: f32Cell height in metres (0.1).
walkable_height: i32walkableHeight.
crouch_height: i32Crouch height.
prone_height: i32Prone height.
walkable_climb: i32walkableClimb.
walkable_radius: i32walkableRadius.
deep_water: i32Deep water depth.
sea_level: i32Sea level.
border_size: i32Border size in cells.
width: i32Heightfield width and height: cells + 2 * border_size.
pad: f32Padding in metres: float(border_size) * cs.
max_simplification_error: f32Contour simplification error in cells.
max_edge_len: i32Longest contour edge in cells (120).
max_vertical_error: f32Vertical simplification error in voxels (8).
min_region_area: i32Default minimum region area.
merge_region_area: i32Region merge area (400).
nvp: usizeVertices per polygon (6).
door_radius: i32Door dilation radius.
slope_threshold: f32Slope threshold: cos(maxSlope).
Trait Implementations§
Source§impl Clone for TileConfig
impl Clone for TileConfig
Source§fn clone(&self) -> TileConfig
fn clone(&self) -> TileConfig
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 TileConfig
impl Debug for TileConfig
Source§impl Default for TileConfig
impl Default for TileConfig
Source§fn default() -> TileConfig
fn default() -> TileConfig
Returns the “default value” for a type. Read more
Source§impl PartialEq for TileConfig
impl PartialEq for TileConfig
impl StructuralPartialEq for TileConfig
Auto Trait Implementations§
impl Freeze for TileConfig
impl RefUnwindSafe for TileConfig
impl Send for TileConfig
impl Sync for TileConfig
impl Unpin for TileConfig
impl UnsafeUnpin for TileConfig
impl UnwindSafe for TileConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().