Enum ark_api::world::SpatialQueryType
source · [−]pub enum SpatialQueryType {
Raycast {
direction: Vec3,
min_distance: f32,
max_distance: f32,
spherecast_radius: f32,
},
}
Expand description
Represents a spatial query type for a spatial query request
Variants
Raycast
Fields
direction: Vec3
min_distance: f32
max_distance: f32
spherecast_radius: f32
If > 0.0, will cast a sphere instead of a ray
Trait Implementations
sourceimpl Clone for SpatialQueryType
impl Clone for SpatialQueryType
sourcefn clone(&self) -> SpatialQueryType
fn clone(&self) -> SpatialQueryType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Copy for SpatialQueryType
Auto Trait Implementations
impl RefUnwindSafe for SpatialQueryType
impl Send for SpatialQueryType
impl Sync for SpatialQueryType
impl Unpin for SpatialQueryType
impl UnwindSafe for SpatialQueryType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more