#[repr(C)]pub struct b2Sweep {
pub localCenter: b2Vec2,
pub c1: b2Vec2,
pub c2: b2Vec2,
pub q1: b2Rot,
pub q2: b2Rot,
}Expand description
This describes the motion of a body/shape for TOI computation. Shapes are defined with respect to the body origin, which may not coincide with the center of mass. However, to support dynamics we must interpolate the center of mass position.
Fields§
§localCenter: b2Vec2< Local center of mass position
c1: b2Vec2< Starting center of mass world position
c2: b2Vec2< Ending center of mass world position
q1: b2Rot< Starting world rotation
q2: b2Rot< Ending world rotation
Trait Implementations§
Auto Trait Implementations§
impl Freeze for b2Sweep
impl RefUnwindSafe for b2Sweep
impl Send for b2Sweep
impl Sync for b2Sweep
impl Unpin for b2Sweep
impl UnwindSafe for b2Sweep
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)