pub struct ShapeCastInput {
pub proxy: ShapeProxy,
pub translation: Vec3,
pub max_fraction: f32,
pub can_encroach: bool,
}Expand description
Shape-cast input for sweeping a convex proxy.
Fields§
§proxy: ShapeProxyConvex proxy to sweep.
translation: Vec3Cast translation.
max_fraction: f32Maximum fraction of the translation to consider.
can_encroach: boolWhether the cast may start slightly encroached on the target.
Implementations§
Source§impl ShapeCastInput
impl ShapeCastInput
Sourcepub fn new(proxy: ShapeProxy, translation: impl Into<Vec3>) -> Result<Self>
pub fn new(proxy: ShapeProxy, translation: impl Into<Vec3>) -> Result<Self>
Creates a shape-cast input with default options.
Sourcepub fn with_options(
proxy: ShapeProxy,
translation: impl Into<Vec3>,
max_fraction: f32,
can_encroach: bool,
) -> Result<Self>
pub fn with_options( proxy: ShapeProxy, translation: impl Into<Vec3>, max_fraction: f32, can_encroach: bool, ) -> Result<Self>
Creates a shape-cast input with explicit options.
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 moreSource§impl Debug for ShapeCastInput
impl Debug for ShapeCastInput
Source§impl PartialEq for ShapeCastInput
impl PartialEq for ShapeCastInput
Source§fn eq(&self, other: &ShapeCastInput) -> bool
fn eq(&self, other: &ShapeCastInput) -> bool
Tests for
self and other values to be equal, and is used by ==.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