b2RestitutionCallback

Type Alias b2RestitutionCallback 

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

Optional restitution 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 b2RestitutionCallback {
    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.