pub struct ColliderBuilder { /* private fields */ }
Implementations§
Source§impl ColliderBuilder
impl ColliderBuilder
pub fn new() -> Self
pub fn offset(self, offset: Affine2) -> Self
pub fn absolute_transform(self, absolute_transform: Affine2) -> Self
pub fn mass_override(self, mass_override: f32) -> Self
pub fn user_data(self, user_data: u128) -> Self
pub fn parent(self, parent: RigidBodyHandle) -> Self
pub fn radius(self, radius: f32) -> Self
pub fn flags(self, flags: ColliderFlags) -> Self
pub fn collision_groups(self, collision_groups: InteractionGroups) -> Self
pub fn shape(self, shape: Box<dyn Shape>) -> Self
pub fn build(self) -> Collider
Auto Trait Implementations§
impl Freeze for ColliderBuilder
impl !RefUnwindSafe for ColliderBuilder
impl !Send for ColliderBuilder
impl !Sync for ColliderBuilder
impl Unpin for ColliderBuilder
impl !UnwindSafe for ColliderBuilder
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