pub struct GrabConfig<S: PhysicsSpace> { /* private fields */ }Implementations§
Source§impl<S: PhysicsSpace> GrabConfig<S>
impl<S: PhysicsSpace> GrabConfig<S>
pub fn new(stiffness: f32, max_carry_speed: f32, max_acceleration: f32) -> Self
pub fn hold(self, hold: GrabHold) -> Self
pub fn anchor_point( self, anchor_point: fn(S::Point, S::Point) -> S::Point, ) -> Self
pub fn constrain_target( self, constrain_target: fn(S::Point, S::Point) -> S::Point, ) -> Self
Trait Implementations§
Source§impl<S: Clone + PhysicsSpace> Clone for GrabConfig<S>
impl<S: Clone + PhysicsSpace> Clone for GrabConfig<S>
Source§fn clone(&self) -> GrabConfig<S>
fn clone(&self) -> GrabConfig<S>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<S: Copy + PhysicsSpace> Copy for GrabConfig<S>
Auto Trait Implementations§
impl<S> Freeze for GrabConfig<S>
impl<S> RefUnwindSafe for GrabConfig<S>
impl<S> Send for GrabConfig<S>
impl<S> Sync for GrabConfig<S>
impl<S> Unpin for GrabConfig<S>
impl<S> UnsafeUnpin for GrabConfig<S>
impl<S> UnwindSafe for GrabConfig<S>
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