pub struct MeshHit {
pub triangle: u32,
pub barycentric: DVec3,
pub hit: ShapeHit,
}Expand description
A query’s nearest hit on a TriangleMesh.
Fields§
§triangle: u32The triangle struck: an index into TriangleMesh::triangles.
barycentric: DVec3The weights of the triangle’s three corners that make the point struck
on it — hit’s point in the mesh’s frame.
hit: ShapeHitThe hit, as the query’s shape-level form reports one: for a sweep,
point is on the triangle and normal points from it to the swept
shape; for a ray, normal faces the ray.
Trait Implementations§
impl Copy for MeshHit
impl StructuralPartialEq for MeshHit
Auto Trait Implementations§
impl Forget for MeshHit
impl Freeze for MeshHit
impl Move for MeshHit
impl RefUnwindSafe for MeshHit
impl Send for MeshHit
impl Sync for MeshHit
impl Unpin for MeshHit
impl UnsafeUnpin for MeshHit
impl UnwindSafe for MeshHit
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