Jump to content

what is the different to get orient attribute with look at and double

Recommended Posts

not sure what answer you are looking for


both can be used to compute a rotation matrix, and both can even give you the same rotation matrix if you understand what they do, they are just functions to serve you to get to some result

while lookat() is specific about the orientation of the axes within the matrix to correspond to inputs, with double cross product you need to know what vectors you are using for which axes and as well you need to handle normalization and matrix assembly, it's like building your own lookat() function using lower level math

(lookat() probably uses cross products to compute matrix as well)

there is plenty of other ways how to compute rotation

like you can as well use maketransform() to compute rotation matrix from 2 vectors

Edited by anim
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...