pub struct CompoundHit {
pub part: usize,
pub hit: ShapeHit,
}Expand description
A ray’s nearest hit on an AabbCompound, in world space.
Fields§
§part: usizeIndex of the part struck, in the slice the compound was built from.
hit: ShapeHitThe hit itself: t along the world ray, the world point
ray.origin + ray.dir * t, and the part’s outward face normal turned
into world space. started_inside means the ray began inside this part
and the hit is its exit face, as ray_vs_aabb reports.
Trait Implementations§
Source§impl Clone for CompoundHit
impl Clone for CompoundHit
impl Copy for CompoundHit
Source§impl Debug for CompoundHit
impl Debug for CompoundHit
Source§impl PartialEq for CompoundHit
impl PartialEq for CompoundHit
impl StructuralPartialEq for CompoundHit
Auto Trait Implementations§
impl Freeze for CompoundHit
impl RefUnwindSafe for CompoundHit
impl Send for CompoundHit
impl Sync for CompoundHit
impl Unpin for CompoundHit
impl UnsafeUnpin for CompoundHit
impl UnwindSafe for CompoundHit
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more