Skip to content

Instantly share code, notes, and snippets.

@levinotik
Created March 15, 2012 17:42
Show Gist options
  • Save levinotik/2045556 to your computer and use it in GitHub Desktop.
Save levinotik/2045556 to your computer and use it in GitHub Desktop.
float largestX = dirtyFoot.getPosition().x + (dirtyFoot.getContentSize().getWidth()/2);
float smallestX = dirtyFoot.getPosition().x - (dirtyFoot.getContentSize().getWidth()/2);
float smallestY = dirtyFoot.getPosition().y - (dirtyFoot.getContentSize().getHeight()/2);
float largestY = dirtyFoot.getPosition().y + (dirtyFoot.getContentSize().getHeight()/2);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment