Swing that moves with 2 bars along
Last project is for creating swing which can move with 2 bars along. In this project I will not use reactor.
Step 1:
Make sure the bar's pivot point located at the top of bar as a hinge.
Step 2: Link seat object to the bar object with Link tool.
Step 3: Select the bar object.
Step 4: Open Curve Editor Window. You can choose it from Graph Editors Menu.
Step 5: Select Rotate Y from Rotation part of bar object.
Step 6: Right Click and choose Assign Controller.
Step 7: Select Float Expression from the list and hit Ok.
Step 8: Now Expression controller is open. First need to define a name in Name field. I wrote "swing" as name and then hit
Create button.
Step 9: Hit Assign to Constant button and enter a value such as 10.
Step 10:
Now type the below formula as the Expression:
1.2*cos(swing*F)*exp(-0.009*F)
and then hit the evaluate button.
Now if you look at the Curve Editor you will find a wavy curve that is losing energy by passing time.
Hit the Play button to see the result.