pub struct CollisionEvents {
pub events: Vec<CollisionEvent>,
}Expand description
A component that stores collision events for the current frame. Typically attached to a singleton entity or used as a resource.
Fields§
§events: Vec<CollisionEvent>List of events that occurred in the last physics step.
Trait Implementations§
Source§impl Clone for CollisionEvents
impl Clone for CollisionEvents
Source§fn clone(&self) -> CollisionEvents
fn clone(&self) -> CollisionEvents
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CollisionEvents
impl Debug for CollisionEvents
Source§impl Default for CollisionEvents
impl Default for CollisionEvents
Source§fn default() -> CollisionEvents
fn default() -> CollisionEvents
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CollisionEvents
impl<'de> Deserialize<'de> for CollisionEvents
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for CollisionEvents
impl Serialize for CollisionEvents
impl Component for CollisionEvents
Auto Trait Implementations§
impl Freeze for CollisionEvents
impl RefUnwindSafe for CollisionEvents
impl Send for CollisionEvents
impl Sync for CollisionEvents
impl Unpin for CollisionEvents
impl UnwindSafe for CollisionEvents
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<C1> ComponentBundle for C1where
C1: Component,
impl<C1> ComponentBundle for C1where
C1: Component,
Source§fn type_ids() -> Vec<TypeId>
fn type_ids() -> Vec<TypeId>
Returns the sorted list of
TypeIds for the components in this bundle. Read moreSource§fn create_columns() -> HashMap<TypeId, Box<dyn AnyVec>>
fn create_columns() -> HashMap<TypeId, Box<dyn AnyVec>>
Creates the set of empty, type-erased
Vec<T> columns required to store
this bundle’s components. Read moreSource§fn update_metadata(
metadata: &mut EntityMetadata,
location: PageIndex,
registry: &ComponentRegistry,
)
fn update_metadata( metadata: &mut EntityMetadata, location: PageIndex, registry: &ComponentRegistry, )
Updates the appropriate fields in an
EntityMetadata struct to point
to the location of this bundle’s data. Read moreSource§unsafe fn add_to_page(self, page: &mut ComponentPage)
unsafe fn add_to_page(self, page: &mut ComponentPage)
Adds the components from this bundle into the specified
ComponentPage. Read more