Struct libliquidfun_sys::box2d::ffi::b2ParticleBodyContact
source · #[repr(C)]pub struct b2ParticleBodyContact {
pub index: int32,
pub body: *mut b2Body,
pub fixture: *mut b2Fixture,
pub weight: f32,
pub normal: b2Vec2,
pub mass: f32,
}Fields§
§index: int32Index of the particle making contact.
body: *mut b2BodyThe body making contact.
fixture: *mut b2FixtureThe specific fixture making contact
weight: f32Weight of the contact. A value between 0.0f and 1.0f.
normal: b2Vec2The normalized direction from the particle to the body.
mass: f32The effective mass used in calculating force.
Trait Implementations§
source§
source§unsafe fn copy_new(
other: &b2ParticleBodyContact,
this: Pin<&mut MaybeUninit<b2ParticleBodyContact>>
)
unsafe fn copy_new( other: &b2ParticleBodyContact, this: Pin<&mut MaybeUninit<b2ParticleBodyContact>> )
Synthesized copy constructor.
source§impl Drop for b2ParticleBodyContact
impl Drop for b2ParticleBodyContact
source§fn drop(self: &mut b2ParticleBodyContact)
fn drop(self: &mut b2ParticleBodyContact)
Synthesized destructor.
source§impl ExternType for b2ParticleBodyContact
impl ExternType for b2ParticleBodyContact
source§impl MakeCppStorage for b2ParticleBodyContact
impl MakeCppStorage for b2ParticleBodyContact
source§unsafe fn allocate_uninitialized_cpp_storage() -> *mut b2ParticleBodyContact
unsafe fn allocate_uninitialized_cpp_storage() -> *mut b2ParticleBodyContact
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 b2ParticleBodyContact)
unsafe fn free_uninitialized_cpp_storage(arg0: *mut b2ParticleBodyContact)
Frees a C++ allocation which has not yet
had a constructor called. Read more
source§impl MoveNew for b2ParticleBodyContact
impl MoveNew for b2ParticleBodyContact
source§unsafe fn move_new(
other: Pin<MoveRef<'_, b2ParticleBodyContact>>,
this: Pin<&mut MaybeUninit<b2ParticleBodyContact>>
)
unsafe fn move_new( other: Pin<MoveRef<'_, b2ParticleBodyContact>>, this: Pin<&mut MaybeUninit<b2ParticleBodyContact>> )
Synthesized move constructor.
impl UniquePtrTarget for b2ParticleBodyContact
impl VectorElement for b2ParticleBodyContact
impl WeakPtrTarget for b2ParticleBodyContact
Auto Trait Implementations§
impl RefUnwindSafe for b2ParticleBodyContact
impl !Send for b2ParticleBodyContact
impl !Sync for b2ParticleBodyContact
impl Unpin for b2ParticleBodyContact
impl UnwindSafe for b2ParticleBodyContact
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