LWJGL
May 20, 2013, 23:24:25 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: LWJGL 2.9.0 released!
 
   Home   Help Search Login Register  



Pages: [1]
  Print  
Author Topic: Tranlate and rotate at the same time  (Read 838 times)
beerbox
Newbie
*
Posts: 1


« on: March 24, 2010, 04:25:03 »

i have a square Smiley. 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?
Logged
broumbroum
Prolific Timewaster
****
Posts: 316



WWW
« Reply #1 on: March 24, 2010, 05:03:12 »

you may use java2d AffineTransform ->createtransformedshape(Shape) to find transformed bounds.
Logged

Sf3JSwing project, code repo (Apache License) -  http://www.sourceforge.net/p/sf3jswing
Sf3jswing Project Forum - http://apps.sourceforge.net/phpbb/sf3jswing/
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
SMFAds for Free Forums
Valid XHTML 1.0! Valid CSS!