pub struct Ballistic(/* private fields */);Expand description
Coupled constant gravity and linear drag, including the zero-drag limit.
Implementations§
Source§impl Ballistic
impl Ballistic
Sourcepub fn burst(center: Point, count: u64) -> Self
pub fn burst(center: Point, count: u64) -> Self
Creates a seeded radial burst with default speed 80..160 and life 3s.
Sourcepub fn gravity(self, gravity: Vector2) -> Self
pub fn gravity(self, gravity: Vector2) -> Self
Replaces constant acceleration in units/squared second.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Ballistic
impl Freeze for Ballistic
impl RefUnwindSafe for Ballistic
impl Send for Ballistic
impl Sync for Ballistic
impl Unpin for Ballistic
impl UnsafeUnpin for Ballistic
impl UnwindSafe for Ballistic
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