Attractions or repulsions (negative attraction) act on 2 particles and either constantly pull them together or constantly pull them apart by applying a force to each particle:
G*m1*m2/d2
in other words the force is is much stronger close up than far away.
Attractions/repulsions have 2 properties:
- Strength - the G up there.
- Minimum Distance - the force does not get stronger closer than this
NOTE: Documentation is only very slightly adapted to comply with the SuperCollider port. See the original by Jeffrey Traer Bernstein here...
http://murderandcreate.com/physics/
Positive strength is attraction, negative strength is repulsion.
Returns:
Positive strength is attraction, negative strength is repulsion.
Arguments:
Return the particles being attracting or repelling each other.
Returns:
Get the minimum distance, which limits how strong the force can get close up.
Returns:
Set the minimum distance, which limits how strong the force can get close up.
Arguments: