Skip to content

Instantly share code, notes, and snippets.

@itsjoekent
Created April 27, 2013 17:03
Show Gist options
  • Save itsjoekent/5473792 to your computer and use it in GitHub Desktop.
Save itsjoekent/5473792 to your computer and use it in GitHub Desktop.
g.setColor(Color.WHITE);
double newX = z * scale;
double newY = z * scale;
g.translate(newX - x, newY - y);
g.scale(newX, newY);
g.drawPolygon(frontCollision.xpoints, frontCollision.ypoints, frontCollision.npoints);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment