pub struct PushImpulse {
pub body_index: usize,
pub impulse: Vec3Fix,
pub point: Vec3Fix,
}Expand description
Impulse to apply to a rigid body from character collision
Fields§
§body_index: usizeIndex of the body to push
impulse: Vec3FixImpulse vector to apply
point: Vec3FixWorld-space point of application
Trait Implementations§
Source§impl Clone for PushImpulse
impl Clone for PushImpulse
impl Copy for PushImpulse
Source§impl Debug for PushImpulse
impl Debug for PushImpulse
impl Eq for PushImpulse
Source§impl PartialEq for PushImpulse
impl PartialEq for PushImpulse
impl StructuralPartialEq for PushImpulse
Auto Trait Implementations§
impl Freeze for PushImpulse
impl RefUnwindSafe for PushImpulse
impl Send for PushImpulse
impl Sync for PushImpulse
impl Unpin for PushImpulse
impl UnsafeUnpin for PushImpulse
impl UnwindSafe for PushImpulse
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more