Jump to content

geometry matrix rotations to pops


dyei nightmare

Recommended Posts

Whassap, i need to translate this vex code from geometry context to pops context, what i know is that the data stream coming from pops all starts invoking orient, but how do you apply this code in pops?
 
matrix3 current_xform = primintrinsic(0, "transform", @ptnum);
matrix3 goal_xform = maketransform(normalize(v@v), chv("up"));
matrix3 delta_xform = invert(current_xform) * goal_xform;
vector4 qdelta = quaternion(delta_xform);
vector torque = qconvert(qdelta);
v@targetw = torque;
f@spinresist = 2.2;
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...