[Tut] Maya: Fun with Physics (almost done)
--------------TEMPLATE AND SCREENS NOT UP YET--------------
Alright, here it goes, my first tutorial for Autodesk Maya, or anything at all for that matter, so if I could add anything to make it more clear, just tell me.
Today I'm going to show you how to use Autodesk Maya (Get it here if you don't already have it [learning edition]) to simulate real-world physics, as well as have objects collide, into each other. Now you can either download my template, completed example, or create your own polygons to follow along with this tutorial. I recommend you download the template, as this tutorial will be made following that template.
Tutorial template (Recommended)
Step 1 [Hard Surfaces]
Okay, so first thing we are going to need is a hard surfaces so that our objects don't fall continuesly into the depths of Maya. To do this simply select the plain and block behind the cylanders (our 'pins'). To select multiple items hold 'Shift' and then Right click on your objects.(as so):
Once the plain is selected, select the dynamics tab:
In the dynamics tab click on the Icon that has a ball bouncing off it:
Congratulations, you've succesfuly made Hard Surfaces!
Step 2 [Gravity]
Next thing we need is Gravity to the pins so that when knocked over they fall down, we also need to add gravity to our ball so that it doesn't go randomly flying. To do so we simply select all the pins and the sphere (with the same method as selecting the plain and block, Shift + Right Click). Now go into the 'Dynamics' tab once more and hit the button with a Green 'G' and arrows pointing down.
Congratulations, you've succesfuly added Gravity!
(PS, to those of you wondering, we don't add gravity to the plain and block, becasue if we did, the Ground and Block would continuously fall down.)
(PPS, you can also edit which way the gravity pulls by editing the attributes)
Step 3 [Make the Pins 'knock-able']
To do this we must once again select all of the pins (but this time only the pins). Once you have all the pins selected, go ahead and hit to the button with what looks like bownling pins being knocked over.
And that's it for this step, all this did was make it so your pins could be knocked over.
Congratulations, you've succesfuly made your pins 'knock-able'.
Step 4 [Collision]
First off, let me say that we don't need to edit the pins, block, and plain to collide with each other, as we have already, in the previous steps, added attributes that make them colide with each other. However, we have not made the sphere and pins collidable. To do so, select all the pins and the sphere. Once you've done so, simply click on the bowling pin with an exclamation mark [!].
Congratulations, you've succesfuly made your pins and ball collidable.
Step 4.5 [Animation Preperation]
This is just some animation preperation so you can see your physics in action. First in the lower right hand corner of maya next to the 'time slider' you should see 3 boxes in pyramid form (1 on top, 2 on the bottom). In the lower to boxes, select the right hand box, punch in any number above 250 (what this does is increases the amount of frames in your animation).
One las step here, simply select the gray box on the far right side of the animation time slider, and pull your mouse to the right, this will make all the frames view able.
Congratulations, you're now prepared for animation.!
Step 5 [Adding movement to the ball]
Next we have to make our ball move forward to knock over the pins, to do so, first select the ball and hit 'Ctrl+A' (this opens up the attributes). Next, increase the initial velocity on the z-axis to -15+ (I know it's a little confusing, what I mean is -15,-16,-17 and so on, reason it's like this is becasue the ball is moving negativly on the z-axis in this particular case).
Congratulations, you've succesfuly added ball movement!
Step 6 [Hit Play]
Hit play, and wathc your physics play! You can also edit the positioning of the ball for different results, to do so,slect your ball then, in the left hand side tool bar, click the cone with arrows coming out of it. You'll then notice your ball has 3 arrows, hold right click on one of them, and move your mouse accordingly to the axis the arrow is pointing on to move the ball. For example, if I wanted to move the ball up I simply hold right click on the arrow pointing up (Y-axis) and move your mouse up or down.
Congratulations, you've succesfuly added Physics to Maya!