#[repr(C)]pub struct b2ShapeCastPairInput {
pub proxyA: b2ShapeProxy,
pub proxyB: b2ShapeProxy,
pub transform: 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
transform: b2Transform< Transform of shape B in shape A’s frame, the relative pose B in A
translationB: b2Vec2< The translation of shape B, in A’s frame
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl 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 UnsafeUnpin for b2ShapeCastPairInput
impl UnwindSafe for b2ShapeCastPairInput
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