Osciallating/waggling joints?

Here's the place to get help and discuss features. The focus is on the C++ version, but generic questions are welcome.
Posts: 1
Joined: Thu Mar 09, 2017 2:10 pm

Osciallating/waggling joints?

Postby Jason55 » Thu Mar 16, 2017 11:03 am

Is there any way to get a revolute joint (or other joint) to oscillate back and forth?

Like a fish tail. So I set a min and max angle and speed and the joint moves back and forth between the two angles.

Posts: 10
Joined: Thu Dec 06, 2012 8:18 am

Re: Osciallating/waggling joints?

Postby zase » Tue Mar 28, 2017 2:23 pm

You could try the below code:

Code: Select all

revJointDef.lowerAngle = -30 * Math. PI / 180
revJointDef.upperAngle = 20 * Math.PI / 180

Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 2 guests