the rollercoaster problem

by Spot on 24.02. '08

the rollercoaster problem – a nice name for a problem you may encounter using motion paths in maya. named and explained by my maya instructor greg berridge lately, i hereby note down the solution offered.

first, the problem: draw a curve (using the ep or cv curve tool) which looks like a rollercoaster loop (hence the name) from the side view in maya.

rollercoaster loop

now create an object which has a clear top/ down topology in order to see the problem you’re going to encounter (e.g. airplane, not a simple ball/ sphere). select the object and the curve and create a motion path (animate > motion paths > attach to motion path, default settings are fine). you may have to correct rotations of your object by selecting the curve and going into the motionPath1 tab of the attribute editor: tweak the front/ up axis/ inverse up etc. there if required.

now play through the frames and all looks as expected – except one issue: the airplane flips in the loop twice, which you definitely don’t want.

the flipping

so, here’s the solution: create a second curve inside the first one. the easiest way is by just offsetting the first one: select the first curve, then edit curves > offset > offset curve (be sure you deactivate “cut loop”). here’s what you should get:

second curve for rollercoaster

now create a locator, select the new path and make a motion path again. double check if the locator follows the path when playing through your frames. to finalize, select the airplane and change world up type to “object up” and type in “locator1″ in the now editable field at world up object. the airplane shouldn’t flip now any more.

no flipping any more!

this solution may help you to solve a lot of other troubles using motion paths. the more i dig into animation, the more i know: locators are the animator’s friends.

{ 1 comment… read it below or add one }

bdazo 30.01. '10 at 16:03 pm

Hi Bastiaan. I was searching for maya motion path and found your blog.
Great idea to solve the flip on that loop example. I’m an animator, but I’m always practicing rigging in maya and 3dsmax, since I need to know that for my work and for myself. My question is this, can you help me find a solution in maya for this tutorial made in 3dsmax http://www.youtube.com/watch?v=9ae-SpmZ8RU

Basically, he adds that dummy to control the rotation of the car wheels. He attaches the dummy to the path and using the wire parameter he offsets the dummy in front of the arc path( which controls the skid on the back of the car). I’m having a hard time figuring how to achieve such thing in maya. Hope you read this. Bye

Previous post: renderman’s micro-tesselation

Next post: creating a reverse foot lock system