Struct bevy_mod_bounding::Bounded[][src]

pub struct Bounded<T: BoundingVolume + Send + Sync>(_);

Marks an entity to have a bounding volume generated. This entity should have a [Mesh] component. A bounding volume component of type T will be computed and added to the entity once the aforementioned mesh has loaded and can be read. This ensures that bounding volume components are always valid when queried, and at worst case can only be out of date if queried in a frame before the bounding volume update system is run.

Trait Implementations

impl<T: Clone + BoundingVolume + Send + Sync> Clone for Bounded<T>[src]

impl<T: Debug + BoundingVolume + Send + Sync> Debug for Bounded<T>[src]

impl<T: BoundingVolume + Send + Sync> Default for Bounded<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Bounded<T> where
    T: RefUnwindSafe

impl<T> Send for Bounded<T>

impl<T> Sync for Bounded<T>

impl<T> Unpin for Bounded<T> where
    T: Unpin

impl<T> UnwindSafe for Bounded<T> where
    T: UnwindSafe

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> CloneAny for T where
    T: Any + Clone

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> FromWorld for T where
    T: Default

impl<T> Instrument for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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<T> TypeData for T where
    T: 'static + Send + Sync + Clone

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