pub struct b2ContactImpulse { /* private fields */ }Expand description
Contact impulses for reporting. Impulses are used instead of forces because sub-step forces may approach infinity for rigid body collisions. These match up one-to-one with the contact points in b2Manifold.
Trait Implementations§
Source§impl CopyNew for b2ContactImpulse
impl CopyNew for b2ContactImpulse
Source§unsafe fn copy_new(
other: &b2ContactImpulse,
this: Pin<&mut MaybeUninit<b2ContactImpulse>>,
)
unsafe fn copy_new( other: &b2ContactImpulse, this: Pin<&mut MaybeUninit<b2ContactImpulse>>, )
Synthesized copy constructor.
Source§impl ExternType for b2ContactImpulse
impl ExternType for b2ContactImpulse
Source§impl MakeCppStorage for b2ContactImpulse
impl MakeCppStorage for b2ContactImpulse
Source§unsafe fn allocate_uninitialized_cpp_storage() -> *mut b2ContactImpulse
unsafe fn allocate_uninitialized_cpp_storage() -> *mut b2ContactImpulse
Allocates heap space for this type in C++ and return a pointer
to that space, but do not initialize that space (i.e. do not
yet call a constructor). Read more
Source§unsafe fn free_uninitialized_cpp_storage(arg0: *mut b2ContactImpulse)
unsafe fn free_uninitialized_cpp_storage(arg0: *mut b2ContactImpulse)
Frees a C++ allocation which has not yet
had a constructor called. Read more
Source§impl MoveNew for b2ContactImpulse
impl MoveNew for b2ContactImpulse
Source§unsafe fn move_new(
other: Pin<MoveRef<'_, b2ContactImpulse>>,
this: Pin<&mut MaybeUninit<b2ContactImpulse>>,
)
unsafe fn move_new( other: Pin<MoveRef<'_, b2ContactImpulse>>, this: Pin<&mut MaybeUninit<b2ContactImpulse>>, )
Synthesized move constructor.
impl UniquePtrTarget for b2ContactImpulse
impl VectorElement for b2ContactImpulse
impl WeakPtrTarget for b2ContactImpulse
Auto Trait Implementations§
impl !Send for b2ContactImpulse
impl !Sync for b2ContactImpulse
impl !Unpin for b2ContactImpulse
impl Freeze for b2ContactImpulse
impl RefUnwindSafe for b2ContactImpulse
impl UnsafeUnpin for b2ContactImpulse
impl UnwindSafe for b2ContactImpulse
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