Enum bevy_mod_raycast::RayCastMethod[][src]

pub enum RayCastMethod {
    Screenspace(Vec2),
    Transform,
}

Specifies the method used to generate rays.

Variants

Screenspace(Vec2)

Specify screen coordinates relative to the camera component associated with this entity.

Component Requirements

This requires a [Windows] resource to convert the cursor coordinates to NDC, and a [Camera] component associated with this RayCastSource’s entity, to determine where the screenspace ray is firing from in the world.

Transform

Use a transform in world space to define a pick ray. This transform is applied to a vector at the origin pointing up to generate a ray.

Component Requirements

Requires a [GlobalTransform] component associated with this RayCastSource’s entity.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Component for T where
    T: 'static + Send + Sync

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Any + Send + Sync

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,