pub fn obb_ray_intersection(
ray_origin: [f64; 3],
ray_dir: [f64; 3],
center: [f64; 3],
half_extents: [f64; 3],
rot: [[f64; 3]; 3],
max_toi: f64,
) -> Option<f64>Expand description
Ray-OBB intersection using the slab method in local OBB space.
ray_origin, ray_dir: world-space ray.
center, half_extents, rot: OBB parameters.
Returns the hit parameter t if intersection within [0, max_toi], else None.