#[repr(C)]pub struct b3ExplosionDef {
pub maskBits: u64,
pub position: b3Pos,
pub radius: f32,
pub falloff: f32,
pub impulsePerArea: 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: b3PosThe 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.
impulsePerArea: f32Impulse per unit area. This applies an impulse according to the shape area that is facing the explosion. Explosions only apply to spheres, capsules, and hulls. This may be negative for implosions.
Trait Implementations§
Source§impl Clone for b3ExplosionDef
impl Clone for b3ExplosionDef
Source§fn clone(&self) -> b3ExplosionDef
fn clone(&self) -> b3ExplosionDef
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 b3ExplosionDef
Auto Trait Implementations§
impl Freeze for b3ExplosionDef
impl RefUnwindSafe for b3ExplosionDef
impl Send for b3ExplosionDef
impl Sync for b3ExplosionDef
impl Unpin for b3ExplosionDef
impl UnsafeUnpin for b3ExplosionDef
impl UnwindSafe for b3ExplosionDef
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