Struct ambient_api::core::messages::Collision
source · pub struct Collision {
pub ids: Vec<EntityId>,
pub points: Vec<Vec3>,
pub normals: Vec<Vec3>,
}
Expand description
Collision: Sent when a collision occurs. The points and normals are in world space.
Fields§
§ids: Vec<EntityId>
§points: Vec<Vec3>
§normals: Vec<Vec3>
Implementations§
Trait Implementations§
source§impl RuntimeMessage for Collision
impl RuntimeMessage for Collision
source§fn subscribe<R>(callback: impl FnMut(Self) -> R + 'static) -> Listenerwhere
R: CallbackReturn,
fn subscribe<R>(callback: impl FnMut(Self) -> R + 'static) -> Listenerwhere
R: CallbackReturn,
Subscribes to this Message. Wrapper around self::subscribe.
impl Message for Collision
Auto Trait Implementations§
impl RefUnwindSafe for Collision
impl Send for Collision
impl Sync for Collision
impl Unpin for Collision
impl UnwindSafe for Collision
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> Downcast for T
impl<T> Downcast for T
source§impl<T> ElementComponentName for T
impl<T> ElementComponentName for T
source§fn element_component_name(&self) -> &'static str
fn element_component_name(&self) -> &'static str
Returns the name of the type implementing ElementComponent.