pub struct ColliderDesc {
pub shape: Shape,
pub offset: [f32; 3],
pub rotation: [f32; 4],
pub friction: f32,
pub restitution: f32,
pub scale: [f32; 3],
pub sensor: bool,
pub collision_group: Option<u32>,
pub collision_mask: Option<u32>,
pub rolling_friction: f32,
pub spin_friction: f32,
pub events: ContactEventMode,
}Fields§
§shape: Shape§offset: [f32; 3]§rotation: [f32; 4]§friction: f32§restitution: f32§scale: [f32; 3]§sensor: bool§collision_group: Option<u32>§collision_mask: Option<u32>§rolling_friction: f32§spin_friction: f32§events: ContactEventModeImplementations§
Source§impl ColliderDesc
impl ColliderDesc
pub fn new(shape: Shape) -> Self
pub fn events(self, events: ContactEventMode) -> Self
pub fn offset(self, offset: [f32; 3]) -> Self
pub fn rotation(self, rotation: [f32; 4]) -> Self
pub fn friction(self, friction: f32) -> Self
pub fn restitution(self, restitution: f32) -> Self
pub fn scale(self, scale: [f32; 3]) -> Self
pub fn sensor(self, sensor: bool) -> Self
pub fn collision_group(self, group: u32) -> Self
pub fn collision_mask(self, mask: u32) -> Self
pub fn rolling_friction(self, rolling_friction: f32) -> Self
pub fn spin_friction(self, spin_friction: f32) -> Self
Trait Implementations§
Source§impl Clone for ColliderDesc
impl Clone for ColliderDesc
Source§fn clone(&self) -> ColliderDesc
fn clone(&self) -> ColliderDesc
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ColliderDesc
Auto Trait Implementations§
impl Freeze for ColliderDesc
impl RefUnwindSafe for ColliderDesc
impl Send for ColliderDesc
impl Sync for ColliderDesc
impl Unpin for ColliderDesc
impl UnsafeUnpin for ColliderDesc
impl UnwindSafe for ColliderDesc
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