pub struct Contact {
pub a: MeshId,
pub b: MeshId,
pub intersecting: bool,
pub distance: f64,
pub triangles_a: Vec<TriangleId>,
pub triangles_b: Vec<TriangleId>,
}Expand description
Two meshes within the margin of Scene::find_contacts.
Fields§
§a: MeshIdThe mesh with the lower index.
b: MeshIdThe mesh with the higher index.
intersecting: boolWhether the two meshes intersect or touch, decided exactly.
distance: f64The distance between the two surfaces; 0 when intersecting.
triangles_a: Vec<TriangleId>The triangles of a within the margin of b, ascending.
triangles_b: Vec<TriangleId>The triangles of b within the margin of a, ascending.
Trait Implementations§
impl StructuralPartialEq for Contact
Auto Trait Implementations§
impl Freeze for Contact
impl RefUnwindSafe for Contact
impl Send for Contact
impl Sync for Contact
impl Unpin for Contact
impl UnsafeUnpin for Contact
impl UnwindSafe for Contact
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