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