[−][src]Function duckduckgeo::collide_with_border
pub fn collide_with_border<N: MyNum>(
pos: &mut Vec2<N>,
vel: &mut Vec2<N>,
rect2: &Rect<N>,
drag: N
)
Collides and bounces an object with a border
pub fn collide_with_border<N: MyNum>(
pos: &mut Vec2<N>,
vel: &mut Vec2<N>,
rect2: &Rect<N>,
drag: N
)
Collides and bounces an object with a border