#[repr(C)]pub struct b2ShapeCastInput {
pub proxy: b2ShapeProxy,
pub translation: b2Vec2,
pub maxFraction: f32,
pub canEncroach: bool,
}Expand description
Low level shape cast input in generic form. This allows casting an arbitrary point cloud wrap with a radius. For example, a circle is a single point with a non-zero radius. A capsule is two points with a non-zero radius. A box is four points with a zero radius.
Fields§
§proxy: b2ShapeProxyA generic shape
translation: b2Vec2The translation of the shape cast
maxFraction: f32The maximum fraction of the translation to consider, typically 1
canEncroach: boolAllow shape cast to encroach when initially touching. This only works if the radius is greater than zero.
Trait Implementations§
Source§impl Clone for b2ShapeCastInput
impl Clone for b2ShapeCastInput
Source§fn clone(&self) -> b2ShapeCastInput
fn clone(&self) -> b2ShapeCastInput
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 b2ShapeCastInput
impl Debug for b2ShapeCastInput
impl Copy for b2ShapeCastInput
Auto Trait Implementations§
impl Freeze for b2ShapeCastInput
impl RefUnwindSafe for b2ShapeCastInput
impl Send for b2ShapeCastInput
impl Sync for b2ShapeCastInput
impl Unpin for b2ShapeCastInput
impl UnwindSafe for b2ShapeCastInput
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)