pub struct JointBreakEvent {
pub index: usize,
pub joint: Joint,
pub force: Fix128,
}Expand description
A joint removed by crate::solver::PhysicsWorld::step because its
reaction force exceeded its break_force
Fields§
§index: usizeIndex the joint had in PhysicsWorld::joints when it broke. Removal is
a swap-remove (as crate::solver::PhysicsWorld::remove_joint), so the
joint that was last now has this index.
joint: JointThe removed joint, as it was configured
force: Fix128The reaction force its last solve transmitted
(crate::joint::solve_joints_with_reaction_forces, N),
strictly greater than its break_force
Trait Implementations§
Source§impl Clone for JointBreakEvent
impl Clone for JointBreakEvent
impl Copy for JointBreakEvent
Source§impl Debug for JointBreakEvent
impl Debug for JointBreakEvent
impl Eq for JointBreakEvent
Source§impl PartialEq for JointBreakEvent
impl PartialEq for JointBreakEvent
impl StructuralPartialEq for JointBreakEvent
Auto Trait Implementations§
impl Freeze for JointBreakEvent
impl RefUnwindSafe for JointBreakEvent
impl Send for JointBreakEvent
impl Sync for JointBreakEvent
impl Unpin for JointBreakEvent
impl UnsafeUnpin for JointBreakEvent
impl UnwindSafe for JointBreakEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more