Skip to content

Instantly share code, notes, and snippets.

@nervoussystem
Created June 1, 2010 22:10
Show Gist options
  • Select an option

  • Save nervoussystem/421591 to your computer and use it in GitHub Desktop.

Select an option

Save nervoussystem/421591 to your computer and use it in GitHub Desktop.
PVector attractionForce = computeAttraction();
//rotate 90 degrees
float spiralForceX = attractionForce.y;
float spiralForceY = -attractionForce.x;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment