Java-Gaming.org Hi !
 Featured games (84) games approved by the League of Dukes Games in Showcase (564) Games in Android Showcase (151) games submitted by our members Games in WIP (605) games currently in development
 News: Read the Java Gaming Resources, or peek at the official Java tutorials
 Home Help Search Login Register
 Show Posts Pages: [1]
 1 Game Development / Newbie & Debugging Questions / Re: Rotating points in a polygon on: 2005-01-27 23:05:05 Brilliant, thanks, I'll check this out
 2 Game Development / Newbie & Debugging Questions / Rotating points in a polygon on: 2005-01-27 21:28:54 I am working on a game using Java2D, and I'm trying to rotate a bounding box surrounding a sprite.The original points of the bounding box are just obtained from the size of the image used for the sprite, so I have a polygon with the points (0,0), (imgWidth,0),(imgWidth,imgHeight),(0,imgHeight)Now, I'm trying to figure out how to rotate these points around any other given point (as each sprite may have a different rotation point) by a particular direction (in degrees at the moment) to find the new polygon which will define the bounding box.Can anybody help me with the equations? Math is definitely my weak point, unfortunately .
 Pages: [1]
 theagentd (1 views) 2015-03-27 23:08:20 wxwsk8er (51 views) 2015-03-20 15:39:46 Fairy Tailz (42 views) 2015-03-15 21:52:20 Olo (28 views) 2015-03-13 17:51:59 Olo (30 views) 2015-03-13 17:50:51 Olo (33 views) 2015-03-13 17:50:16 Olo (40 views) 2015-03-13 17:47:07 ClaasJG (30 views) 2015-03-10 11:36:42 ClaasJG (38 views) 2015-03-10 11:33:01 Pippogeek (45 views) 2015-03-05 14:36:23
 LiquidNitrogen 23x basil_ 21x BurntPizza 21x KevinWorkman 21x Riven 18x theagentd 18x EgonOlsen 17x Roquen 14x princec 12x Slyth2727 9x NegativeZero 9x SHC 9x Varkas 9x ClaasJG 7x teletubo 7x Ecumene 7x
 How to: JGO Wikiby Mac702015-02-17 20:56:162D Dynamic Lighting2015-01-01 20:25:42How do I start Java Game Development?by gouessej2014-12-27 19:41:21Resources for WIP gamesby kpars2014-12-18 10:26:14Understanding relations between setOrigin, setScale and setPosition in libGdx2014-10-09 22:35:00Definite guide to supporting multiple device resolutions on Android (2014)2014-10-02 22:36:02List of Learning Resources2014-08-16 10:40:00List of Learning Resources2014-08-05 19:33:27
 java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org