Talk About Network



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 > 2D Kinematics -...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 613 of 670
Post > Topic >>

2D Kinematics - angular movement

by SonOfLilit@[EMAIL PROTECTED] Feb 4, 2007 at 12:51 PM

Hello,

In a program that I am writing, there is a plane with rectangular
objects on it. The user can drag these objects with the mouse,
resulting in a spring attaching the mouse pointer to the dragged
object and the object moving accordingly.

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

I could wait for next semester (taking physics and differential
equations), but I want the program working ASAP (it's pretty urgent
for me), so I'd rather complete it now.

A few DAYS of googling gave a lot of results on the 3D case, which I
just can't grasp (due to missing physics AND math) and can't find
anybody who'd be willing to reduce it to the 2D case for me. I also
found a lot of open source code that does it, but nothing both 2D and
with angular movement.

Here are a few google results that might help anyone with physics and
math background remember the solution quickly:

http://www.euclideanspace.com/threed/games/options/timestep/index.htm
http://www.gaffer.org/game-physics/physics-in-3d
http://www.euclideanspace.com/physics/kinematics/angularvelocity/

I will be very thankful to any wiling to point me at a solution
(preferably pseudo-code since I'm very tired of this problem and it's
the best way to communicate the solution, but I will respect a reply
that thinks that would be too lazy of me and just point me at the
solution).

SonOfLilit

PS I'm currently using Euler integration because I'm prototyping but
the code is written so that it would be very simple to implement RK4,
if I find Euler not accurate enough - but I won't optimize early.




 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 Mon May 12 5:38:29 CDT 2008.