Skip to main content

b3TreeBoxCastCallbackFcn

Type Alias b3TreeBoxCastCallbackFcn 

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

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

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

Aliased Type§

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

Variants§

§1.0.0

None

No value.

§1.0.0

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

Some value of type T.