- November 13, 2019 at 1:05 am
How can I animate a pendulum in the form of a table hanging on two ropes and that does not rotate to remain horizontal?
I am using this expression to animate the ropes:
freq = 1.0; //oscillations per second
amplitude = 50;
decay = 0.3;
But when I apply it to the board, it spins and no longer looks like hunging on the ropes
How can I change the expression?
- November 13, 2019 at 7:27 am
It’s hard to picture how you have things set up, but if the table doesn’t need to remain horizontal, it seems you could just parent it to one of the ropes and it wouldn’t need a rotation expression.
- November 13, 2019 at 3:39 pm
- November 13, 2019 at 4:02 pm
Ah, OK. What I would do is move the board’s anchor point to where it attaches to the left rope, parent it to that rope, and add this expression to its rotation:
- November 13, 2019 at 6:23 pm
it did not work, the board still attached to the left rope but swings, the board doesn’t remain horizontal
- November 13, 2019 at 6:40 pm
It’s hard to tell what’s going on in your project without the graphics, but it doesn’t appear that the table has been parented to the rope or has the -parent*rotation expression applied to its rotation property.
- November 13, 2019 at 9:59 pm
- November 13, 2019 at 10:19 pm
Ah, I guess it’s a language thing. Try pickwhipping from the table’s rotation expression to the parent’s rotation property and then add *-1 to the end. In my project, it looks like this:
- November 14, 2019 at 4:41 am
Dan you are very patient person, i really appreciate your help and your spirit of service, tank you very much…
Log in to reply.