Using matrix attributes to calculate a vector product


#1

Hi all,

I searched for this a bit and didn’t see any relevant discussion, so here goes:

I have three transforms, a, b, and c, which form the points of a triangle. I want to find the cross product of vector ab and ac. I know I can “manually” extract the positional data of the transforms’ respective world matrices, then construct the vectors, then get the cross product, but I’m looking for a more elegant way to do this, using the various matrix outputs from the transform nodes.

Ultimately I want to use the vector cross product (abXac), and the vector ab to construct an orientation for a new transform which will be used as a World Object Up in an aim constraint. I have a way of achieving this with an intermediate aim constraint, but I’m wondering if I could get the result more cleanly by just connecting some matrix attributes and a multMatrix node or two.

Thanks!

James


#2

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.