pub struct NavMeshEditor {Show 16 fields
pub mesh: Option<NavMesh>,
pub build_settings: NavMeshBuildSettings,
pub agent_settings: Vec<NavMeshAgentSettings>,
pub off_mesh_connections: Vec<OffMeshConnection>,
pub active_tab: NavMeshEditorTab,
pub vis_mode: NavMeshVisualizationMode,
pub show_agent_cylinder: bool,
pub selected_area_type: u8,
pub build_progress: f32,
pub is_building: bool,
pub last_build_time_ms: f32,
pub debug_path: Option<NavPath>,
pub debug_path_start: Vec3,
pub debug_path_goal: Vec3,
pub show_debug_path: bool,
pub next_connection_id: u32,
}Fields§
§mesh: Option<NavMesh>§build_settings: NavMeshBuildSettings§agent_settings: Vec<NavMeshAgentSettings>§off_mesh_connections: Vec<OffMeshConnection>§active_tab: NavMeshEditorTab§vis_mode: NavMeshVisualizationMode§show_agent_cylinder: bool§selected_area_type: u8§build_progress: f32§is_building: bool§last_build_time_ms: f32§debug_path: Option<NavPath>§debug_path_start: Vec3§debug_path_goal: Vec3§show_debug_path: bool§next_connection_id: u32Implementations§
pub fn new() -> Self
pub fn start_build(&mut self)
pub fn update(&mut self, dt: f32)
pub fn compute_debug_path(&mut self)
pub fn add_off_mesh_connection(&mut self, conn: OffMeshConnection)
pub fn remove_off_mesh_connection(&mut self, id: u32)
pub fn triangle_count(&self) -> usize
pub fn vertex_count(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.