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§
Sourcefn set_destination(self, target: impl Into<Vector3>) -> bool
fn set_destination(self, target: impl Into<Vector3>) -> bool
SetDestination(crate::unity_engine::vector3::Vector3) overload
Sourcefn get_steering_target(self) -> Vector3
fn get_steering_target(self) -> Vector3
get_steeringTarget() overload
Sourcefn calculate_path(
self,
target_position: impl Into<Vector3>,
path: impl Into<NavMeshPath>,
) -> bool
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
Sourcefn calculate_path_internal(
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
CalculatePathInternal(crate::unity_engine::vector3::Vector3, crate::unity_engine::ai::navmeshpath::NavMeshPath) overload
Sourcefn set_destination_injected(self) -> (bool, Vector3)
fn set_destination_injected(self) -> (bool, Vector3)
SetDestination_Injected(*mutcrate::unity_engine::vector3::Vector3) overload
Sourcefn get_steering_target_injected(self) -> Vector3
fn get_steering_target_injected(self) -> Vector3
get_steeringTarget_Injected(*mutcrate::unity_engine::vector3::Vector3) overload
Sourcefn calculate_path_internal_injected(
self,
path: impl Into<NavMeshPath>,
) -> (bool, Vector3)
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.