This project has moved. For the latest updates, please go here.

Simple Pendulum?

Topics: User Forum
Nov 17, 2010 at 5:52 PM

Say I have two bodies - do I use a joint of some sort to create a pendulum? Do I need to create a chain connecting them? Basically, I just want to have a body with another body hanging from it, swinging back and forth.

Also, is there a best way to keep it swinging consistently, or should I just script the application of forces to the swinging body?

Nov 18, 2010 at 7:32 PM

If you need the chain to be able to collide with something, then you need the chain to be made up of bodies with shapes attached. If that is not the case, you simply attach a distance joint between the two bodies.