Hello Guest

Tranlate and rotate at the same time

  • 1 Replies
  • 4107 Views
Tranlate and rotate at the same time
« on: March 24, 2010, 11:25:03 »
i have a square :). I rotated him and now i want to  translate him (when i push KEY_W) but in the way wich i rotate my square.
I need horizontal and vertical bounds. how can i check it?

Re: Tranlate and rotate at the same time
« Reply #1 on: March 24, 2010, 12:03:12 »
you may use java2d AffineTransform ->createtransformedshape(Shape) to find transformed bounds.