pub struct ContactsCache { /* private fields */ }Implementations§
Source§impl ContactsCache
impl ContactsCache
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn clear(&mut self)
pub fn begin_contacts_update(&mut self)
pub fn end_contacts_update(&mut self)
pub fn contacts_began(&self) -> impl Iterator<Item = EntityPair> + '_
pub fn contacts_ended(&self) -> impl Iterator<Item = EntityPair> + '_
pub fn cancel_contact(&mut self, a: Entity, b: Entity)
pub fn convert_to_overlapping(&mut self, a: Entity, b: Entity)
pub fn convert_to_blocking(&mut self, a: Entity, b: Entity)
pub fn does_overlap(&self, a: Entity, b: Entity) -> bool
pub fn does_block(&self, a: Entity, b: Entity) -> bool
pub fn has_contact_between(&self, a: Entity, b: Entity) -> bool
pub fn has_blocking_contact_of(&self, entity: Entity) -> bool
pub fn has_overlapping_contact_of(&self, entity: Entity) -> bool
pub fn has_any_contact_of(&self, entity: Entity) -> bool
pub fn overlapping_contact_between( &self, a: Entity, b: Entity, ) -> Option<DensityFieldContact<'_>>
pub fn blocking_contact_between( &self, a: Entity, b: Entity, ) -> Option<DensityFieldContact<'_>>
pub fn any_contact_between( &self, a: Entity, b: Entity, ) -> Option<DensityFieldContact<'_>>
pub fn overlapping_contacts_of( &self, entity: Entity, ) -> impl Iterator<Item = DensityFieldContact<'_>> + '_
pub fn blocking_contacts_of( &self, entity: Entity, ) -> impl Iterator<Item = DensityFieldContact<'_>> + '_
pub fn any_contacts_of( &self, entity: Entity, ) -> impl Iterator<Item = DensityFieldContact<'_>> + '_
pub fn overlapping_contacts( &self, ) -> impl Iterator<Item = DensityFieldContact<'_>> + '_
pub fn blocking_contacts( &self, ) -> impl Iterator<Item = DensityFieldContact<'_>> + '_
pub fn any_contacts(&self) -> impl Iterator<Item = DensityFieldContact<'_>> + '_
Trait Implementations§
Source§impl Debug for ContactsCache
impl Debug for ContactsCache
Source§impl Default for ContactsCache
impl Default for ContactsCache
Source§fn default() -> ContactsCache
fn default() -> ContactsCache
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ContactsCache
impl RefUnwindSafe for ContactsCache
impl Send for ContactsCache
impl Sync for ContactsCache
impl Unpin for ContactsCache
impl UnsafeUnpin for ContactsCache
impl UnwindSafe for ContactsCache
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