#[non_exhaustive]pub struct CreateParams<'a> {Show 16 fields
pub verts: &'a [[u16; 3]],
pub polys: &'a [u16],
pub flags: &'a [u16],
pub areas: &'a [u8],
pub nvp: usize,
pub off_mesh: &'a [OffMeshInput],
pub extra: &'a TileExtra,
pub tile_x: i32,
pub tile_y: i32,
pub bmin: [f32; 3],
pub bmax: [f32; 3],
pub walkable_height: f32,
pub walkable_radius: f32,
pub walkable_climb: f32,
pub cs: f32,
pub ch: f32,
}Expand description
The inputs of create_tile_data, mirroring dtNavMeshCreateParams.
Build it with CreateParams::new and set the scalars by field assignment.
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.verts: &'a [[u16; 3]]Poly mesh vertices in cell coordinates (relative to bmin).
polys: &'a [u16]Polygons: nvp * 2 values each, the vertex indices (terminated by 0xffff) followed by
the neighbour codes.
flags: &'a [u16]Polygon flags, one per polygon.
areas: &'a [u8]Polygon area ids, one per polygon.
nvp: usizeVertices per polygon of the poly mesh (at most 6).
off_mesh: &'a [OffMeshInput]The off-mesh connections that touch the tile.
extra: &'a TileExtraThe extra section stored after the off-mesh connections.
tile_x: i32Tile grid x.
tile_y: i32Tile grid y (the z grid index).
bmin: [f32; 3]Tile bounds minimum.
bmax: [f32; 3]Tile bounds maximum.
walkable_height: f32Agent height in metres.
walkable_radius: f32Agent radius in metres.
walkable_climb: f32Agent climb height in metres.
cs: f32Cell size.
ch: f32Cell height.
Implementations§
Trait Implementations§
Source§impl<'a> Clone for CreateParams<'a>
impl<'a> Clone for CreateParams<'a>
Source§fn clone(&self) -> CreateParams<'a>
fn clone(&self) -> CreateParams<'a>
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 moreAuto Trait Implementations§
impl<'a> Freeze for CreateParams<'a>
impl<'a> RefUnwindSafe for CreateParams<'a>
impl<'a> Send for CreateParams<'a>
impl<'a> Sync for CreateParams<'a>
impl<'a> Unpin for CreateParams<'a>
impl<'a> UnsafeUnpin for CreateParams<'a>
impl<'a> UnwindSafe for CreateParams<'a>
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