Juraj Posted October 5, 2015 Share Posted October 5, 2015 Hi I am trying to dive into VEX. And I made up a little assigment for myself - do an assemble effect in DOPs. However when matching target position and orientation there is a slight offset occuring in orientation. (img_1) But if I do this position and orientation adjusting (same method) based on simpler rule (frame number) it works as expected. (img_2) Could somebody look into this file and check what may cause this problem? Thanks, Juraj project.hipnc Quote Link to comment Share on other sites More sharing options...
anim Posted October 5, 2015 Share Posted October 5, 2015 matching transforms is not enough, you need to match pivots as well so just insert this code somewhere after you populate align variable ... vector pivot = primintrinsic(0, "pivot", @primnum); vector pivottgt = primintrinsic(1, "pivot", @primnum); pivot = lerp(pivot, pivottgt, align); setprimintrinsic(0, "pivot", @primnum, pivot); ... Quote Link to comment Share on other sites More sharing options...
Juraj Posted October 6, 2015 Author Share Posted October 6, 2015 Awesome! Now it works, thank you. However I am not sure I understand this pivot thing. How is intrinsic "packedfulltransform" computed? Is it computed by attribute @P, "transform" intrinsic and "pivot" intrinsic? What role does "pivot" intrinsic play in bullet sim? And why is it changing during simulation? Isn't pivot of transformation encoded into "transform" intrinsic matrix? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.