pub struct Contact { /* private fields */ }
Implementations§
source§impl Contact
impl Contact
pub fn manifold<'a>(&'a self) -> &'a Manifold
pub fn manifold_mut<'a>(&'a mut self) -> &'a mut Manifold
pub fn world_manifold<'a>(&'a self) -> WorldManifold
pub fn is_touching(&self) -> bool
pub fn is_enabled(&self) -> bool
pub fn fixture_a(&self) -> (BodyHandle, FixtureHandle)
pub fn child_index_a(&self) -> i32
pub fn fixture_b(&self) -> (BodyHandle, FixtureHandle)
pub fn child_index_b(&self) -> i32
pub fn set_friction(&mut self, friction: f32)
pub fn friction(&self) -> f32
pub fn reset_friction(&mut self)
pub fn set_restitution(&mut self, restitution: f32)
pub fn restitution(&self) -> f32
pub fn reset_restitution(&mut self)
pub fn set_tangent_speed(&mut self, speed: f32)
pub fn tangent_speed(&self) -> f32
pub fn evaluate(&mut self, xf_a: &Transform, xf_b: &Transform) -> Manifold
Auto Trait Implementations§
impl RefUnwindSafe for Contact
impl !Send for Contact
impl !Sync for Contact
impl Unpin 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