Previous topicNext topic

to add a "tumble" module...

Suggestions for new features for Magic.
Post Reply
hazardman
Posts: 74
Joined: Sat Nov 08, 2014 1:33 am

to add a "tumble" module...

Post by hazardman »

would like to see some sort of "tumbling" module that will allow an object to continuously rotate with the following parameters...

Rotate origin:
X
Y
Z

if set to 0,0,0 then the object would appear to rotate on itself (if the object itself is also at 0,0,0)...if not 0,0,0, then the object would appear to orbit a point at the specified distances...

Rotate axis speed:
X-axis
Y-axis
Z-axis

positive rotate numbers would rotate/orbit clockwise and negative counter-clockwise...

of course all of the above origin and axis parameters can be linked...

would be interesting to see how these modules can be compounded to form more complex effects, eg the first copy can be set up to have the object "tumble" on itself..then this can be feed into another tumble module with an origin other than 0,0,0 to have the "tumbling" object to also orbit around a point thus creating a rotating moon revolving around a planet...
Magic
Site Admin
Posts: 3440
Joined: Wed Apr 09, 2014 9:28 pm

Re: to add a "tumble" module...

Post by Magic »

If I understand you correctly, the functionality you want can be achieved by using the Translate and Rotate modules in combination with a Ramp modifier.

Take a look at the first scene in the VideoExamples.magic sample project. It has an example of Rotate modules with Ramp modifiers. The Ramp value controls the speed of the rotation.

To have an "orbit" effect, just add a Translate module before the Rotate module. Like this:
orbit.jpg
orbit.jpg (44.69 KiB) Viewed 5303 times
Does that help?
Eric
hazardman
Posts: 74
Joined: Sat Nov 08, 2014 1:33 am

Re: to add a "tumble" module...

Post by hazardman »

close...

the translate doesn't seem quite to work the way i want to....it makes the object appears to be in "synchronized" orbit as oppose to spinning on itself and also orbiting around a point...however...

it works if i break this up into two scenes--beauty!..i'll have to get used to thinking a little out-of-the-box ;)

thanks for the lead...
tumble.jpg
tumble.jpg (93.68 KiB) Viewed 5169 times
hazardman
Posts: 74
Joined: Sat Nov 08, 2014 1:33 am

Re: to add a "tumble" module...

Post by hazardman »

here's a link to a quick "tumbling" test video...i added another RotateAxis on the Z axis to compound the motion further and it's producing the effect i was looking for!..thanks again for the help...
Post Reply