# SimplyMaya Forums

Welcome to the forum, feel free to ask questions here.

 Register FAQ Members List Calendar Mark Forums Read

 27-12-2006, 11:28 AM #1 TAZINLWFL Registered User     Join Date: Aug 2006 Location: West Palm, FL Posts: 13 Thanks: 0 Thanked 0 Times in 0 Posts Dynamic Pendulum I need a little bit of help. I found an old walkthough (from Maya 2.5 i think) it shows you how to make a Newton's Pendulum... It just doesnt work for me... I've attached the file... maybe someone can figure it out? Thanks
27-12-2006, 11:30 AM   #2
TAZINLWFL
Registered User

Join Date: Aug 2006
Location: West Palm, FL
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts

forgot to attach the file
Attached Files
 pendulum.mb (202.2 KB, 175 views)

 27-12-2006, 01:21 PM #3 NeoStrider Registered User     Join Date: Jun 2004 Location: Cleveland, Ohio (USA) Posts: 1,541 Thanks: 0 Thanked 2 Times in 2 Posts can you also provide a link to the walkthrough? __________________ Accept no substitutions.
27-12-2006, 01:29 PM   #4
enhzflep
Subscriber

Join Date: Oct 2006
Location: Melbourne
Posts: 313
Thanks: 0
Thanked 0 Times in 0 Posts

I've just had a look at your file Tazinlwfl, there's just a few things I noticed and straigtened out.

The ball that was moving initially is off-center. This is helping to cause an unsatisfactory bounce. I also noticed that this ball was rotated some. A quick reset transformations, before moving the ball back to the rest position solved that.

Next, I found that by placing the axis of a sphere at the point of contact between the frame and the two nails suspending it, caused undesirable results. I simply reset the axis to the center of the sphere.

After I'd straightened out the above, there still remained the question of how to get the balls moving. If the axis was left up between where the 2 nails touched the frame, and the ball rotated, it took the right position but was positively useless during simulation.

What I found was that the ball responded to the dynamics simulation much better if the ball was moved into it's initial position rather than being rotated into it.

So, I created a locator, scaled it to make selection easier and then positioned it at the center of the sphere that was to start the animation. I then placed the axis of this locator between where the two nails that suspend this ball touch the frame. I was then able to rotate the locator into a good position to start the animation(45 deg). Then I grabbed the ball, moved it so it's center was v-snapped to the locator. Since the ball was moved and not rotated, I then had to rotate it by the same amount that the locator was rotated by (45 deg).

If I didn't use a locator to position the ball at it's starting position, I couldn't be sure it was the right distance away from the point it was suspended from - meaning that it'd hang higher or lower than it should have.

Simon

EDIT: wondered about a link to the walk-thru, but see that that's since been covered.
Attached Files
 modifiedpendulum.zip (25.4 KB, 129 views)

Last edited by enhzflep : 27-12-2006 at 01:34 PM.

 27-12-2006, 02:13 PM #5 TAZINLWFL Registered User     Join Date: Aug 2006 Location: West Palm, FL Posts: 13 Thanks: 0 Thanked 0 Times in 0 Posts It sounds like you have solved it.... thank you... unfortunately, I am using version 6.5, so I cant open your edited version. I followed what you did, and did notice the first ball was off-center... (oops)... i reset all locations so that all of the balls are in a line resting (as if it stopped)... now you said to reset the axis, and move the ball to the initial position (not rotate) using a locator as a guide, right? EDIT: Did everything... still not working... played with some settings, and it still doesnt seem to work... if you got it to work, which settings did you use? and the link for the walkthrough doesnt work anymore (from the old alias site) I found a PDF with it all there... I can share if you'd like...[ Last edited by TAZINLWFL : 27-12-2006 at 02:27 PM.
27-12-2006, 10:48 PM   #6
enhzflep
Subscriber

Join Date: Oct 2006
Location: Melbourne
Posts: 313
Thanks: 0
Thanked 0 Times in 0 Posts

Ah, gad-dammit. Knew I should have saved it as an .ma file.

Hmm. Sorry I've been unclear in my instructions. I've just gone through it all again just to make sure I've not missed a step. So, here's what I did, verbatim.

Fixing Newton's Pendulum

PART I - Align the balls
~~~~~~~~~~~~~~~~~~~~~~~~
2) Using front view, select left-most sphere
3) Modify->Reset Transformations
4) Translate by 5 in Y axis

PART II - Reset axii
~~~~~~~~~~~~~~~~~~~~
1) For each sphere, move the pivot to it's center.

PART III - Setting the start position
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1) Create a locator
2) Set the ScaleX, ScaleY and ScaleZ of the locator
to 1.5 in the channel box. This makes it easier to grab a hold of.
3) Move the locator to the center of the left-most sphere.
4) Move the pivot of this locator directly up
until it is the same height as the top of the frame.
5) Select the locator AND the ball and set RotateZ to -45 deg.
Note: This will make the ball rotate in place and the locator
swing around it's pivot point.
6) Move the already-rotated ball so it's pivot lies on top of the locator
you just positioned(with the -45 deg rotate).
7) Hit play.

Here's the .ma file of the scene. I believe you can edit the file by hand and get maya to open it.
Just change 1/all of these 3 lines to reflect the version you'd like to open it with

requires maya "7.0";
fileInfo "product" "Maya Unlimited 7.0";
fileInfo "version" "7.0";

Simon
Attached Files
 modifiedpendulum_ma.zip (68.2 KB, 75 views)

 28-12-2006, 07:27 AM #7 TAZINLWFL Registered User     Join Date: Aug 2006 Location: West Palm, FL Posts: 13 Thanks: 0 Thanked 0 Times in 0 Posts lol.... um...:headbang: not to be a pain, but i really dont know how to open that file either.... if I import or open directly, it says unknown version 7, and I dont know how to change those 3 lines... (i'm very much a newbie)... I'd like to learn that too, if you could help.... :bow: THANKS!!!
 28-12-2006, 07:39 AM #8 TAZINLWFL Registered User     Join Date: Aug 2006 Location: West Palm, FL Posts: 13 Thanks: 0 Thanked 0 Times in 0 Posts Wait.... I found it online already!! You have to open it with a text editor (like Notepad) and the first couple of lines has that info.... i changed it to 6.5... and it opened fine!!! GREAT!!! Now.... does the pendulum work like its supposed to..... .... ... um.... not really.... i'll upload a movie....
28-12-2006, 07:50 AM   #9
TAZINLWFL
Registered User

Join Date: Aug 2006
Location: West Palm, FL
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts

Movie is attached.... rendered 200 frames...

does yours come out different?
Attached Files
 newtonspendulum.zip (177.4 KB, 72 views)

 28-12-2006, 08:20 AM #10 enhzflep Subscriber     Join Date: Oct 2006 Location: Melbourne Posts: 313 Thanks: 0 Thanked 0 Times in 0 Posts Cool, glad you got that thing with the .ma files sussed. Wouldv'e mentioned that thing with the notepad if I'd realised, sorry. As for the animation, uh-huh. That's exactly how mine turns out. What exactly are you after may I enquire? Do you want it so that just the outside two balls fly away from the bunch in the center, or do you want something like what it's doing now, where all of the balls break apart now and then. If you play with the gravity field you get a different effect, it's currently at 18.6, or double earth's. Setting it to 9.8 gives a slower animation, with less forcefull impacts. You may find that playing around with the Bounciness, Damping, Static Friction and Dynamic Friction fields of the balls will give you a more pleasing result. Just shift select all of the balls then edit these fields in the channel box. This way you avoid having to set each attribute for each of the five balls. You just set each one once and all 5 balls are modified simultaneously. I found a bounciness of 0.95, Damping 0.1, Static Friction 0.1, Dynamic Friction 0.8 gave a result that I liked better. Now to find that tute and learn more about the rigid solver... Simon

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts vB code is On Smilies are On [IMG] code is On HTML code is Off

 Similar Threads Thread Thread Starter Forum Replies Last Post Problem solving many dynamic objects in a pile? rohiniduggal Dynamics & Special Effects 3 14-01-2011 06:26 PM

## \$34

Month-to-month billing

## \$87

Billing every 3 months
 \$29/month Unlimited access to all videos Project files to download Easy to cancel at anytime Save \$5 per month or \$15 in total compared to monthly billing with this package.

## \$288

Billing every 12 months
 \$24/month Unlimited access to all videos Project files to download Easy to cancel at anytime Save \$10 per month or \$120 in total compared to monthly billing with this package.

Your plan will automatically renew. You can cancel at any time via your PayPal account to avoid being charged again.

You can view the FAQ on our video plans here. You can contact us directly here. By clicking one of the buttons above, you agree to our Terms and Privacy Policy.