pub struct ColliderSet {
pub arena: Arena<Collider>,
pub group_arenas: HashMap<Group, Arena<ColliderHandle>>,
/* private fields */
}
Fields§
§arena: Arena<Collider>
§group_arenas: HashMap<Group, Arena<ColliderHandle>>
Implementations§
Source§impl ColliderSet
impl ColliderSet
pub fn new(time_data: Rc<TimeData>) -> Self
pub fn get(&self, handle: ColliderHandle) -> Option<&Collider>
pub fn get_mut(&mut self, handle: ColliderHandle) -> Option<&mut Collider>
pub fn get2_mut( &mut self, handle_a: ColliderHandle, handle_b: ColliderHandle, ) -> (Option<&mut Collider>, Option<&mut Collider>)
pub fn iter(&self) -> impl Iterator<Item = (ColliderHandle, &Collider)>
pub fn len(&self) -> usize
pub fn remove_ignoring_parent(&mut self, handle: ColliderHandle)
pub fn remove(&mut self, handle: ColliderHandle, rbd_set: &mut RigidBodySet)
pub fn insert_with_parent( &mut self, collider: Collider, rbd_handle: RigidBodyHandle, rbd_set: &mut RigidBodySet, ) -> ColliderHandle
Auto Trait Implementations§
impl Freeze for ColliderSet
impl !RefUnwindSafe for ColliderSet
impl !Send for ColliderSet
impl !Sync for ColliderSet
impl Unpin for ColliderSet
impl !UnwindSafe for ColliderSet
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more