pub struct ShapeCastInput {
pub proxy: ShapeProxy,
pub translation: Vec3,
pub max_fraction: f32,
pub can_encroach: bool,
}Expand description
Low level shape cast input in generic form. This allows casting an arbitrary point cloud wrapped 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 eight points with a zero radius. (b3ShapeCastInput)
Fields§
§proxy: ShapeProxyA generic query shape.
translation: Vec3The translation of the shape cast.
max_fraction: f32The maximum fraction of the translation to consider, typically 1.
can_encroach: boolAllow shape cast to encroach when initially touching. This only works if the radius is greater than zero.
Trait Implementations§
Source§impl Clone for ShapeCastInput
impl Clone for ShapeCastInput
Source§fn clone(&self) -> ShapeCastInput
fn clone(&self) -> ShapeCastInput
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 ShapeCastInput
Source§impl Debug for ShapeCastInput
impl Debug for ShapeCastInput
Source§impl Default for ShapeCastInput
impl Default for ShapeCastInput
Source§fn default() -> ShapeCastInput
fn default() -> ShapeCastInput
Returns the “default value” for a type. Read more
Source§impl PartialEq for ShapeCastInput
impl PartialEq for ShapeCastInput
impl StructuralPartialEq for ShapeCastInput
Auto Trait Implementations§
impl Freeze for ShapeCastInput
impl RefUnwindSafe for ShapeCastInput
impl Send for ShapeCastInput
impl Sync for ShapeCastInput
impl Unpin for ShapeCastInput
impl UnsafeUnpin for ShapeCastInput
impl UnwindSafe for ShapeCastInput
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