#[repr(C)]pub struct b2ShapeCastPairInput {
pub proxyA: b2ShapeProxy,
pub proxyB: b2ShapeProxy,
pub transformA: b2Transform,
pub transformB: b2Transform,
pub translationB: b2Vec2,
pub maxFraction: f32,
pub canEncroach: bool,
}Expand description
Input parameters for b2ShapeCast
Fields§
§proxyA: b2ShapeProxy< The proxy for shape A
proxyB: b2ShapeProxy< The proxy for shape B
transformA: b2Transform< The world transform for shape A
transformB: b2Transform< The world transform for shape B
translationB: b2Vec2< The translation of shape B
maxFraction: f32< The fraction of the translation to consider, typically 1
canEncroach: bool< Allows shapes with a radius to move slightly closer if already touching
Trait Implementations§
Source§impl Clone for b2ShapeCastPairInput
impl Clone for b2ShapeCastPairInput
Source§fn clone(&self) -> b2ShapeCastPairInput
fn clone(&self) -> b2ShapeCastPairInput
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for b2ShapeCastPairInput
impl Debug for b2ShapeCastPairInput
impl Copy for b2ShapeCastPairInput
Auto Trait Implementations§
impl Freeze for b2ShapeCastPairInput
impl RefUnwindSafe for b2ShapeCastPairInput
impl Send for b2ShapeCastPairInput
impl Sync for b2ShapeCastPairInput
impl Unpin for b2ShapeCastPairInput
impl UnwindSafe for b2ShapeCastPairInput
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)