Jump to content
Sign in to follow this  
Jsmidlow

RBD LookAt Orientation

Recommended Posts

Hi. I have a setup with boxes scattered in a circle position. Inside rbdbulletsolver i try to use LookAt in order to force boxes always face the center while they move around. But fo some reason look at rotates all boxes. I know there must ne something with up vector but cant fiure out by myself. I tried to different options within look at and tried to assign different up values but still cant figure out how to make look at force objects to actually look in the center of coordinates without weird rotation. Please... help
The file is attached. 

untitled.hip

Share this post


Link to post
Share on other sites
Posted (edited)

@Jsmidlow 'Lookat' gives orient attribute not Up or?

velocity and without v hm

hm Thanx for File a
 

likeTarget.hiplc

fghddcvfdddddd.gif

fghddcvfddddddf.gif

fghddcvfddddddff.gif

Edited by Librarian
  • Like 2

Share this post


Link to post
Share on other sites

@Librarian Thanks for the answer. But when I pick a target and run simulation. Boex start rotating around themselves. Instead I want the to keep being oriented like in initital position. So that they keep on following particles, collide with each other as rbd objects face the target in the center but without rotation around its loval center. 

photo_2022-04-11_16-36-02.jpg

Share this post


Link to post
Share on other sites

hm what happens if you make rot attribute and use that in vex like , just wondering..:rolleyes:

@orient = eulartoquaternion(radians(@rot),XFORM_XYZ);


 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×