Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects How to rotate the Y axis of a 3d vector according to another 3d vector?

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

    Posted by Quang Nguyen on August 1, 2014 at 12:17 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.

    Please help calculate the transformed vector A. Thanks!

    Walter Soyka replied 11 years, 9 months ago 3 Members · 4 Replies
  • 4 Replies
  • Michael Szalapski

    August 4, 2014 at 4:26 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.

  • Quang Nguyen

    August 5, 2014 at 5:51 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.

  • Michael Szalapski

    August 5, 2014 at 1:21 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.

  • Walter Soyka

    August 5, 2014 at 1:27 pm

    Here’s a start:

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

    Walter Soyka
    Designer & Mad Scientist at Keen Live [link]
    Motion Graphics, Widescreen Events, Presentation Design, and Consulting
    @keenlive   |   RenderBreak [blog]   |   Profile [LinkedIn]

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy