#[repr(C)]pub struct b2ExplosionDef {
pub maskBits: u64,
pub position: b2Vec2,
pub radius: f32,
pub falloff: f32,
pub impulsePerLength: f32,
}Expand description
The explosion definition is used to configure options for explosions. Explosions consider shape geometry when computing the impulse. @ingroup world
Fields§
§maskBits: u64Mask bits to filter shapes
position: b2Vec2The center of the explosion in world space
radius: f32The radius of the explosion
falloff: f32The falloff distance beyond the radius. Impulse is reduced to zero at this distance.
impulsePerLength: f32Impulse per unit length. This applies an impulse according to the shape perimeter that is facing the explosion. Explosions only apply to circles, capsules, and polygons. This may be negative for implosions.
Trait Implementations§
Source§impl Clone for b2ExplosionDef
impl Clone for b2ExplosionDef
Source§fn clone(&self) -> b2ExplosionDef
fn clone(&self) -> b2ExplosionDef
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for b2ExplosionDef
impl Debug for b2ExplosionDef
impl Copy for b2ExplosionDef
Auto Trait Implementations§
impl Freeze for b2ExplosionDef
impl RefUnwindSafe for b2ExplosionDef
impl Send for b2ExplosionDef
impl Sync for b2ExplosionDef
impl Unpin for b2ExplosionDef
impl UnwindSafe for b2ExplosionDef
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)