#[repr(C)]pub struct b3ShapeCastInput {
pub proxy: b3ShapeProxy,
pub translation: b3Vec3,
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 sphere 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: b3ShapeProxyA generic query shape.
translation: b3Vec3The 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 b3ShapeCastInput
impl Clone for b3ShapeCastInput
Source§fn clone(&self) -> b3ShapeCastInput
fn clone(&self) -> b3ShapeCastInput
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 b3ShapeCastInput
Auto Trait Implementations§
impl !Send for b3ShapeCastInput
impl !Sync for b3ShapeCastInput
impl Freeze for b3ShapeCastInput
impl RefUnwindSafe for b3ShapeCastInput
impl Unpin for b3ShapeCastInput
impl UnsafeUnpin for b3ShapeCastInput
impl UnwindSafe for b3ShapeCastInput
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