Skip to main content

INavMeshAgentMethods

Trait INavMeshAgentMethods 

Source
pub trait INavMeshAgentMethods: INavMeshAgent {
    // Provided methods
    fn set_destination(self, target: impl Into<Vector3>) -> bool { ... }
    fn get_steering_target(self) -> Vector3 { ... }
    fn calculate_path(
        self,
        target_position: impl Into<Vector3>,
        path: impl Into<NavMeshPath>,
    ) -> bool { ... }
    fn calculate_path_internal(
        self,
        target_position: impl Into<Vector3>,
        path: impl Into<NavMeshPath>,
    ) -> bool { ... }
    fn set_speed(self, value: impl Into<f32>) { ... }
    fn set_destination_injected(self) -> (bool, Vector3) { ... }
    fn get_steering_target_injected(self) -> Vector3 { ... }
    fn calculate_path_internal_injected(
        self,
        path: impl Into<NavMeshPath>,
    ) -> (bool, Vector3) { ... }
}

Provided Methods§

Source

fn set_destination(self, target: impl Into<Vector3>) -> bool

SetDestination(crate::unity_engine::vector3::Vector3) overload

Source

fn get_steering_target(self) -> Vector3

get_steeringTarget() overload

Source

fn calculate_path( self, target_position: impl Into<Vector3>, path: impl Into<NavMeshPath>, ) -> bool

CalculatePath(crate::unity_engine::vector3::Vector3, crate::unity_engine::ai::navmeshpath::NavMeshPath) overload

Source

fn calculate_path_internal( self, target_position: impl Into<Vector3>, path: impl Into<NavMeshPath>, ) -> bool

CalculatePathInternal(crate::unity_engine::vector3::Vector3, crate::unity_engine::ai::navmeshpath::NavMeshPath) overload

Source

fn set_speed(self, value: impl Into<f32>)

set_speed(f32) overload

Source

fn set_destination_injected(self) -> (bool, Vector3)

SetDestination_Injected(*mutcrate::unity_engine::vector3::Vector3) overload

Source

fn get_steering_target_injected(self) -> Vector3

get_steeringTarget_Injected(*mutcrate::unity_engine::vector3::Vector3) overload

Source

fn calculate_path_internal_injected( self, path: impl Into<NavMeshPath>, ) -> (bool, Vector3)

CalculatePathInternal_Injected(*mutcrate::unity_engine::vector3::Vector3, crate::unity_engine::ai::navmeshpath::NavMeshPath) overload

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<__T: INavMeshAgent> INavMeshAgentMethods for __T

Available on crate feature unity_engine-ai-navmeshagent only.