Java-Gaming.org Hi !
 Featured games (91) games approved by the League of Dukes Games in Showcase (756) Games in Android Showcase (229) games submitted by our members Games in WIP (842) games currently in development
 News: Read the Java Gaming Resources, or peek at the official Java tutorials
Pages: [1]
 ignore  |  Print
 Rotational Physics advice needed  (Read 3620 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.

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

 DesertCoockie (56 views) 2018-05-13 18:23:11 nelsongames (88 views) 2018-04-24 18:15:36 nelsongames (78 views) 2018-04-24 18:14:32 ivj94 (763 views) 2018-03-24 14:47:39 ivj94 (95 views) 2018-03-24 14:46:31 ivj94 (647 views) 2018-03-24 14:43:53 Solater (108 views) 2018-03-17 05:04:08 nelsongames (189 views) 2018-03-05 17:56:34 Gornova (430 views) 2018-03-02 22:15:33 buddyBro (1090 views) 2018-02-28 16:59:18
 Java Gaming Resourcesby philfrei2017-12-05 19:38:37Java Gaming Resourcesby philfrei2017-12-05 19:37:39Java Gaming Resourcesby philfrei2017-12-05 19:36:10Java Gaming Resourcesby philfrei2017-12-05 19:33:10List of Learning Resourcesby elect2017-03-13 14:05:44List of Learning Resourcesby elect2017-03-13 14:04:45SF/X Librariesby philfrei2017-03-02 08:45:19SF/X Librariesby philfrei2017-03-02 08:44:05
 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