Struct ambient_api_core::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: CallbackReturn>(
callback: impl FnMut(Self) -> R + 'static
) -> Listener
fn subscribe<R: CallbackReturn>( callback: impl FnMut(Self) -> R + 'static ) -> Listener
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