Java-Gaming.org Hi !
 Featured games (84) games approved by the League of Dukes Games in Showcase (565) Games in Android Showcase (152) games submitted by our members Games in WIP (607) games currently in development
 News: Read the Java Gaming Resources, or peek at the official Java tutorials
 Home Help Search Login Register
Pages: [1]
 ignore  |  Print
 Rotational Physics advice needed  (Read 2639 times) 0 Members and 1 Guest are viewing this topic.
blahblahblahh

JGO Coder

Medals: 1

http://t-machine.org

 « Posted 2003-04-15 20:13:50 »

Does anyone have any advice on rot physics? I've got various objects which have multiple moments acting on them dynamically from different points, and need to accurately rotate the objects under the action of the moments.

Main problems which spring to mind:

- What's the centre-of-rotation when acted on by multiple moments?
- What's the rotational acceleration about that centre? (I suspect I can work this out by getting the A at a point, and assuming it is rotating the edge of a circle whose radius is the distance of that point from the centre, and then calculate the angular/rotational acceleration from there).

Unfortunately, it has been a very very long time since I covered circular/spherical physics, and I can't seem to find any good resources (my books are long since vanished, and there appear to be no good resources online for this particular branch. Several days of google searches currently fruitless)

malloc will be first against the wall when the revolution comes...
swpalmer

JGO Coder

Exp: 12 years

Where's the Kaboom?

 « Reply #1 - Posted 2003-04-16 00:08:06 »

Rotations are usually about the center of mass..  I think you would be able to merge things to rotations in a few planes centered on that point.

lilspikey

Senior Newbie

Computers Stole My Social Skills

 « Reply #2 - Posted 2003-04-20 11:04:19 »

Check out:

http://www.d6.com/users/checker/dynamics.htm

There are some pretty good articles there on rotational phsyics.

The biggest trouble (if you are gonna do 3D) is picking a representation for your orientation.  Hecker uses 3x3 matrices, but I quite like quarternions.

 Games published by our own members! Check 'em out!
blahblahblahh

JGO Coder

Medals: 1

http://t-machine.org

 « Reply #3 - Posted 2003-04-22 16:53:53 »

Quote
Does anyone have any advice on rot physics? I've got various objects which have multiple moments acting on them dynamically from different points, and need to accurately rotate the objects under the action of the moments.

Main problems which spring to mind:

- What's the centre-of-rotation when acted on by multiple moments?

Well, duh! After thinking about this a bit more, I realised that by definition the centre-of-rot has to be the centre-of-mass. I'm dealing with multiple differently-defined centres-of-mass for the same body (e.g. centre-of-buoyancy for floating objects) and was being very thick, and worrying about something I shouldn't have bothered with!

Sadly, I've also discovered that Java2D is horrifically slow once you start using complex CAG operations (. It wasn't my physics engine that was slow, it was Java2D that was painting slowly!

malloc will be first against the wall when the revolution comes...
blahblahblahh

JGO Coder

Medals: 1

http://t-machine.org

 « Reply #4 - Posted 2003-04-22 16:57:31 »

Quote
Check out:

http://www.d6.com/users/checker/dynamics.htm

There are some pretty good articles there on rotational phsyics.

The biggest trouble (if you are gonna do 3D) is picking a representation for your orientation.  Hecker uses 3x3 matrices, but I quite like quarternions.

Hmm. I've looked at Chris's site for physics info before, and although I just checked again, I couldn't find anything particular to rotational physics - although I didn't bother looking closely at the books (I don't have access to a library - online online resources, sadly).

Sorry if I'm being thick (again) but which resources in particular did you spot on Chris's pages?

P.S. Yeees, 3x3 matrices are rather crap if you're doing anything interesting. I'm using J2D as a zero-maintenance display technology (very useful to not have to debug graphics AND physics in parallel), so happy to use the actually-rather-well-designed AffineTransform class for all matrices.

malloc will be first against the wall when the revolution comes...
lilspikey

Senior Newbie

Computers Stole My Social Skills

 « Reply #5 - Posted 2003-04-27 08:58:36 »

There are some PDF articles there (written for Game Developer) that are a very good starting point.  Plus there is some sample C code too:

http://www.d6.com/users/checker/dynamics.htm#articles

http://www.d6.com/users/checker/dynamics.htm#samples

Pages: [1]
 ignore  |  Print

You cannot reply to this message, because it is very, very old.

 Riven (10 views) 2015-04-01 18:27:05 ags1 (26 views) 2015-03-31 10:55:12 theagentd (13 views) 2015-03-27 23:08:20 wxwsk8er (54 views) 2015-03-20 15:39:46 Fairy Tailz (48 views) 2015-03-15 21:52:20 Olo (29 views) 2015-03-13 17:51:59 Olo (33 views) 2015-03-13 17:50:51 Olo (40 views) 2015-03-13 17:50:16 Olo (44 views) 2015-03-13 17:47:07 ClaasJG (61 views) 2015-03-10 11:36:42
 BurntPizza 21x LiquidNitrogen 21x KevinWorkman 18x EgonOlsen 17x theagentd 16x basil_ 16x Roquen 15x Varkas 12x wessles 11x 65K 11x Riven 9x Rayvolution 9x phu004 8x SHC 8x princec 8x Ashedragon 8x
 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