Jump to content

Orient object along velocity vector


dchow1992

Recommended Posts

Hey everyone,

Trying to make more sense out of matrices and quaternions; Having some trouble

orienting a sphere along its velocity vector. Some of it is starting to make sense..but I get

lost pretty fast.

 

right now I am taking the vel and creating a coordinate system around it and then using the orient vop.

Not sure my setup is proper and am getting weird popping at some points.

 

Thanks for checking it out,

David

orient_odforce.hipnc

Link to comment
Share on other sites

just subtract center from P before orient

since now you are rotating geo, (that's already animated) around 0,0,0 then adding another center offset

and what you want is move geo to center(by subtracting), then rotate around 0,0,0, then add center offset back

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.

Guest
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...