Skip to main content
Known Participant
June 18, 2009
Question

maintain distance between two objects

  • June 18, 2009
  • 1 reply
  • 393 views

hi evryone,
i am trying to develop a simple car game, and to do that i have to maintain the distance between the two wheels.
for the collision detection i have used coreyoneil class, which i think is excellent. i cant get the distances to go smoothly. and basically i am finding it hard to get the physics to work. if anyone has an idea what i should do, or has a good example it would be greatly appreaciated.

i have attached the swf and fla for you to see.

thanks.

This topic has been closed for replies.

1 reply

funkysoul
Inspiring
June 19, 2009

Basically you can put them together in a sprite, or you might even thing of using box2d or quickbox2d.

if that doesn't work with your setup then you might have  a look in here:

http://www.gotoandplay.it/_articles/2004/12/inverseKinematics.php