[−][src]Function duckduckgeo::gravitate
pub fn gravitate<N: Float + MyNum>(
bots: [(Vec2<N>, N, &mut Vec2<N>); 2],
min: N,
gravity_const: N
) -> Result<(), ErrTooClose>
Returns the force to be exerted to the first object. The force to the second object can be retrieved simply by negating the first.