b2TreeShapeCastCallbackFcn

Type Alias b2TreeShapeCastCallbackFcn 

Source
pub type b2TreeShapeCastCallbackFcn = Option<unsafe extern "C" fn(input: *const b2ShapeCastInput, proxyId: c_int, userData: u64, context: *mut c_void) -> f32>;
Expand description

This function receives clipped ray cast input for a proxy. The function returns the new ray fraction.

  • return a value of 0 to terminate the ray cast
  • return a value less than input->maxFraction to clip the ray
  • return a value of input->maxFraction to continue the ray cast without clipping

Aliased Type§

pub enum b2TreeShapeCastCallbackFcn {
    None,
    Some(unsafe extern "C" fn(*const b2ShapeCastInput, i32, u64, *mut c_void) -> f32),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*const b2ShapeCastInput, i32, u64, *mut c_void) -> f32)

Some value of type T.