Skip to content

Instantly share code, notes, and snippets.

@Groogy
Created December 24, 2013 10:49
Show Gist options
  • Save Groogy/8111581 to your computer and use it in GitHub Desktop.
Save Groogy/8111581 to your computer and use it in GitHub Desktop.
// In Update function
myTransform = sf::Transform::Identity
myTransform.translate(-originVector);
myTransform.roate(rotation);
// In Draw
states.transform = states.transform.combine(myTransform);
target.draw(sprite, states);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment