Jump to content

Attract to orientation


frankengen

Recommended Posts

Hi,

 

I was wondering if anyone knew how to attract to an orientation. I have a bunch of paked bullet rbds attrackted to points but I want them to attract to the normals of the points aswell. And preferably I would like to do it in a sop solver as it gives me more control.

Hope someone can help.

Thank you so much in advance.

Frank.

Link to comment
Share on other sites

You can compute difference between current orientation and target direction and then adjust angular velocity to rotate to desired orientation.

 

You will probably need to define more then single target vector (e.g. up and z) to get exact match in orientation.

 

Simple example (with just up direction) attached (I adjusted it for attribvops in H14).

AttractOrientation_02.hipnc

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