b2FrictionCallback

Type Alias b2FrictionCallback 

Source
pub type b2FrictionCallback = Option<unsafe extern "C" fn(frictionA: f32, userMaterialIdA: u64, frictionB: f32, userMaterialIdB: u64) -> f32>;
Expand description

Optional friction mixing callback. This intentionally provides no context objects because this is called from a worker thread. @warning This function should not attempt to modify Box2D state or user application state. @ingroup world

Aliased Type§

pub enum b2FrictionCallback {
    None,
    Some(unsafe extern "C" fn(f32, u64, f32, u64) -> f32),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(f32, u64, f32, u64) -> f32)

Some value of type T.