> I want to make a pendulum. the motion should involve
>physical principles. It should be possible to change
>the lenght of the cord for example. If somebody did this
>before, please help me with the formula.
>
>i tried:
>T = 2*pi *sqrt(cordLength/g)
>but how do i get the coordinates of the swinging body?

The coordinates of the swinging body would just be the sprite loc. You
might need to move the member's registration point so that it corresponds
to the point of attachment of the string. (Or you could just approximate it
using the center of the object, which in fact would be more accurate--you
should probably use the center of mass of the object as the registration
point)

Then you'd take the distance between the sprite.loc and the point at which
the cord is attached to determine the cord length.

Does that make sense?

Bruce



[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to