use glam::Vec3A;
use crate::UserInfoType;
#[derive(Debug, Copy, Clone, PartialEq)]
pub struct RaycastQuery {
pub from: Vec3A,
pub to: Vec3A,
pub include_dynamics: bool,
}
#[derive(Debug, Copy, Clone, PartialEq)]
pub struct RaycastHitInfo {
pub hit_point: Vec3A,
pub hit_normal: Vec3A,
pub hit_fraction: f32,
pub user_info: UserInfoType,
}
impl Default for RaycastHitInfo {
fn default() -> Self {
RaycastHitInfo {
hit_point: Vec3A::ZERO,
hit_normal: Vec3A::Z,
hit_fraction: 0.0,
user_info: UserInfoType::None,
}
}
}