pub struct LocalContact {
pub local_a: Point3<f32>,
pub local_b: Point3<f32>,
pub global: Contact,
}
Expand description
A point of contact between two objects that includes the contact points for each object in terms of the object’s center.
A LocalContact is derived from a regular Contact and includes all of the same information including the contact points in the local coordinates of the objects they belong to.
Fields§
§local_a: Point3<f32>
Global contact point a
relative to the center of object a at the time of
collision.
local_b: Point3<f32>
Global contact point b
relative to the center of object b at the time of
collision.
global: Contact
Contact the LocalContact was derived from.
Trait Implementations§
Source§impl Clone for LocalContact
impl Clone for LocalContact
Source§fn clone(&self) -> LocalContact
fn clone(&self) -> LocalContact
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for LocalContact
impl Debug for LocalContact
Source§impl From<LocalContact> for Manifold
impl From<LocalContact> for Manifold
Source§fn from(lc: LocalContact) -> Self
fn from(lc: LocalContact) -> Self
Converts to this type from the input type.
Source§impl Neg for LocalContact
impl Neg for LocalContact
impl Copy for LocalContact
Auto Trait Implementations§
impl Freeze for LocalContact
impl RefUnwindSafe for LocalContact
impl Send for LocalContact
impl Sync for LocalContact
impl Unpin for LocalContact
impl UnwindSafe for LocalContact
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