FORUMS: list search recent posts

# How to rotate the Y axis of a 3d vector according to another 3d vector?

FAQ   •   VIEW ALL
 How to rotate the Y axis of a 3d vector according to another 3d vector? on Aug 1, 2014 at 12:17:31 pm

I have vector A rotating randomly around the Y axis (for example [-1, -2, 3]). I have vector B that is the velocity of my moving Emitter.

I want to rotate the Y axis of vector A to the direction of vector B. I want to make particles spread like firework trails.

 Re: How to rotate the Y axis of a 3d vector according to another 3d vector?on Aug 4, 2014 at 4:26:05 pm

I don't fully understand what you are asking for? Could you try wording it differently or providing some screenshots?

- The Great Szalam
(The 'Great' stands for 'Not So Great, in fact, Extremely Humble')

No trees were harmed in the creation of this message, but several thousand electrons were mildly inconvenienced.

 Re: How to rotate the Y axis of a 3d vector according to another 3d vector?on Aug 5, 2014 at 5:51:30 am

Hi Michael! Thank you for your attention!

My emitter shoots several particles up and spread out around the Y axis like a cone. When the emitter moves, I want the cone to rotate along with the velocity of the emitter, like a firework trail. It can be easily done in 2D by rotating the Z. But in 3D I don't know how to transform all of them.

 Re: How to rotate the Y axis of a 3d vector according to another 3d vector?on Aug 5, 2014 at 1:21:45 pm

The problem is you know your project, but I don't. So what you think is a good explanation isn't. I'm going to need screenshots or some drawings of what you want.

I don't even know how you're creating your particles.

- The Great Szalam
(The 'Great' stands for 'Not So Great, in fact, Extremely Humble')

No trees were harmed in the creation of this message, but several thousand electrons were mildly inconvenienced.

 Re: How to rotate the Y axis of a 3d vector according to another 3d vector?on Aug 5, 2014 at 1:27:29 pm

Here's a start:

get global rotation / orientation of a child object [link]

Walter Soyka
Motion Graphics, Widescreen Events, Presentation Design, and Consulting