#[repr(C)]pub struct b2WorldManifold {
pub normal: b2Vec2,
pub points: [b2Vec2; 2],
pub separations: [f32; 2],
}Expand description
This is used to compute the current state of a contact manifold.
Fields§
§normal: b2Vec2< world vector pointing from A to B
points: [b2Vec2; 2]< world contact point (point of intersection)
separations: [f32; 2]< a negative value indicates overlap, in meters
Implementations§
Source§impl b2WorldManifold
impl b2WorldManifold
Sourcepub unsafe fn Initialize(
self: Pin<&mut b2WorldManifold>,
manifold: *const b2Manifold,
xfA: &b2Transform,
radiusA: f32,
xfB: &b2Transform,
radiusB: f32,
)
pub unsafe fn Initialize( self: Pin<&mut b2WorldManifold>, manifold: *const b2Manifold, xfA: &b2Transform, radiusA: f32, xfB: &b2Transform, radiusB: f32, )
Evaluate the manifold with supplied transforms. This assumes modest motion from the original state. This does not change the point count, impulses, etc. The radii must come from the shapes that generated the manifold.
Trait Implementations§
Source§impl CopyNew for b2WorldManifold
impl CopyNew for b2WorldManifold
Source§unsafe fn copy_new(
other: &b2WorldManifold,
this: Pin<&mut MaybeUninit<b2WorldManifold>>,
)
unsafe fn copy_new( other: &b2WorldManifold, this: Pin<&mut MaybeUninit<b2WorldManifold>>, )
Synthesized copy constructor.
Source§impl Drop for b2WorldManifold
impl Drop for b2WorldManifold
Source§fn drop(self: &mut b2WorldManifold)
fn drop(self: &mut b2WorldManifold)
Synthesized destructor.
Source§impl ExternType for b2WorldManifold
impl ExternType for b2WorldManifold
Source§impl MakeCppStorage for b2WorldManifold
impl MakeCppStorage for b2WorldManifold
Source§unsafe fn allocate_uninitialized_cpp_storage() -> *mut b2WorldManifold
unsafe fn allocate_uninitialized_cpp_storage() -> *mut b2WorldManifold
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 b2WorldManifold)
unsafe fn free_uninitialized_cpp_storage(arg0: *mut b2WorldManifold)
Frees a C++ allocation which has not yet
had a constructor called. Read more
Source§impl MoveNew for b2WorldManifold
impl MoveNew for b2WorldManifold
Source§unsafe fn move_new(
other: Pin<MoveRef<'_, b2WorldManifold>>,
this: Pin<&mut MaybeUninit<b2WorldManifold>>,
)
unsafe fn move_new( other: Pin<MoveRef<'_, b2WorldManifold>>, this: Pin<&mut MaybeUninit<b2WorldManifold>>, )
Synthesized move constructor.
impl UniquePtrTarget for b2WorldManifold
impl VectorElement for b2WorldManifold
impl WeakPtrTarget for b2WorldManifold
Auto Trait Implementations§
impl Freeze for b2WorldManifold
impl RefUnwindSafe for b2WorldManifold
impl Send for b2WorldManifold
impl Sync for b2WorldManifold
impl Unpin for b2WorldManifold
impl UnsafeUnpin for b2WorldManifold
impl UnwindSafe for b2WorldManifold
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