logo
pub struct SpatialQueryRequestBuilder { /* private fields */ }
Expand description

Use to build a SpatialQueryRequest using an ergonomic interface with sensible defaults.

Implementations

Builds a world space raycast request with the minimum and maximum distance along the ray.

By default only the first hit is returned (can be changed with Self::with_max_hits).

Sweep a sphere along a ray. Like a “thick” raycast.

Spherecasts can currently only be performed on the physical world.

Max number of hits that we want to receive.

Which layers we can hit.

Ignore hits with this entity. If you want to ignore several entities you ewill have to use a layer mask instead.

Add options to the spatial query.

Methods from Deref<Target = SpatialQueryRequest>

Converts this SpatialQueryRequest to the corresponding ffi message struct.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

The resulting type after dereferencing.

Dereferences the value.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.