Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Gaming > Development Programming Algorithms > Re: 2D Kinemati...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 4 Topic 613 of 680
Post > Topic >>

Re: 2D Kinematics - angular movement

by "Jakob Nielsen" <spam@[EMAIL PROTECTED] > Feb 5, 2007 at 01:07 PM

> Now, I've got translational movement working pretty perfect, but I
> just cannot seem to figure out angular movement.

If you have a rectangle (or any other shape for that mapper) and you know 
its center of mass and its moment of inertia, then it is simple.
Center of mass and moment of inertia are simple to calculate and I am sure

you can find many descriptions of those. For example 
http://hyperphysics.phy-astr.gsu.edu/hbase/mi.html

The only "tricky" thing about totation and translation in 2D is that if
you 
pull at a point which is offset from your center of mass, then you get 
roation and translation, and the translation is exactly the same as if you

puled at the center of mass. That confused me somewhat when I wanted to 
learn this.

Rotation is as translation. You have torque (as force) and you have moment

of inertia (as mass) and you have angular acceleration and angular
velocity 
(as acceleration and velocity).

Imagine a rectangle in a coordinatesystem, so it is axis aligned and 10 
meter wide (along x) and 5 meter tall (along y). Center of mass is at 0,0 
and we define the mass to be 100kg and the moment of inertia to be 100Nm

You pull at one end at (10,0) with a force of 100N
The length of the linear acceleration is then 100kg/100N=1m/s^2 and the 
direction is along the y-axis. The accleration vector is (0,1m/s^2)

The angular acceleration is (100N*10m)/100Nm=10rad/s

When you simulate this with some time step, you update the 
position,velocity,rotation and angular velocity by those values and so on.

This was written in all haste and may be unclear, but you did write ASAP
;-)

I actually have an old example of a 2D space****p with a few thrusters
which 
is doing this. Let me know if you are interested.
 




 4 Posts in Topic:
2D Kinematics - angular movement
SonOfLilit@[EMAIL PROTECT  2007-02-04 12:51:47 
Re: 2D Kinematics - angular movement
"Jakob Nielsen"  2007-02-05 13:07:04 
Re: 2D Kinematics - angular movement
Erik Max Francis <max@  2007-02-05 22:37:18 
Re: 2D Kinematics - angular movement
"SonOfLilit" &l  2007-02-06 07:54:47 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 26 8:53:06 CDT 2008.