Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

rotating a velocity vector

rotating a velocity vector

Anonymous
Not applicable
350 Views
0 Replies
Message 1 of 1

rotating a velocity vector

Anonymous
Not applicable

Hi guys, first of all please bear with me, this may seem like a dynamics and particles question but it's really a math question, if we didn't have the new data operators it would be maxscript 🙂 (also it's been on the particles and dynamics forum for a few days but no one came forward to answer it, and that forum doesn't seem to move a lot anyway.)

 

Basically I was wandering if anyone knows a cleaner way to  rotate the velocity vector of a particle(or any object that has a velocity vector) on each integration step based on its age than rotating the Transform of the particle  and reasigning the normalized rotated Z axis to the speed and multiply it by the speed magnitude?

I dont mind if the answer is in maxscript, formula or plain text 🙂

also , at the bottom there's an image of the graphic representation, let's say I want to control the direction a tittle more, like having them orbiting around a sphere but still having the swirly motion, I've thought about achieving this by adding vectors but it can get complex, anyone knows a clean way?

The data operator looks like this:

RotationMarix.jpg this gets me pretty close to the forms I'm looking for but 'm sure there's a better way to deal with velocity vectors and I would love to know it :smileyhappy:

Thanks in advance guys, the result looks like this:

Pretty_Form.jpg

0 Likes
351 Views
0 Replies
Replies (0)