pub struct ShapeCastPairInput {
pub proxy_a: ShapeProxy,
pub proxy_b: ShapeProxy,
pub transform: Transform,
pub translation_b: Vec2,
pub max_fraction: f32,
pub can_encroach: bool,
}Expand description
Input parameters for shape_cast.
(b2ShapeCastPairInput)
Fields§
§proxy_a: ShapeProxyThe proxy for shape A
proxy_b: ShapeProxyThe proxy for shape B
transform: TransformTransform of shape B in shape A’s frame, the relative pose B in A
translation_b: Vec2The translation of shape B, in A’s frame
max_fraction: f32The fraction of the translation to consider, typically 1
can_encroach: boolAllows shapes with a radius to move slightly closer if already touching
Trait Implementations§
Source§impl Clone for ShapeCastPairInput
impl Clone for ShapeCastPairInput
Source§fn clone(&self) -> ShapeCastPairInput
fn clone(&self) -> ShapeCastPairInput
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 ShapeCastPairInput
Source§impl Debug for ShapeCastPairInput
impl Debug for ShapeCastPairInput
Source§impl PartialEq for ShapeCastPairInput
impl PartialEq for ShapeCastPairInput
impl StructuralPartialEq for ShapeCastPairInput
Auto Trait Implementations§
impl Freeze for ShapeCastPairInput
impl RefUnwindSafe for ShapeCastPairInput
impl Send for ShapeCastPairInput
impl Sync for ShapeCastPairInput
impl Unpin for ShapeCastPairInput
impl UnsafeUnpin for ShapeCastPairInput
impl UnwindSafe for ShapeCastPairInput
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