Jump to content
Sign in to follow this  
dyei nightmare

geometry matrix rotations to pops

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;

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  

×