Skip to main content

b3TreeRayCastCallbackFcn

Type Alias b3TreeRayCastCallbackFcn 

Source
pub type b3TreeRayCastCallbackFcn = Option<unsafe extern "C" fn(input: *const b3RayCastInput, 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 b3TreeRayCastCallbackFcn {
    None,
    Some(unsafe extern "C" fn(*const b3RayCastInput, i32, u64, *mut c_void) -> f32),
}

Variants§

§1.0.0

None

No value.

§1.0.0

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

Some value of type T.