Jump to content
CinnamonMetal

Change Orientation for Points

Recommended Posts

I'm trying to orient some points from a POPNet, instead of setting the vector for the points; I want to physically re-position the points orientation. Within a POPWrangle I set the following;

vector PAngle = set(-1,0,0);
@N = PAngle;

This is incorrect as it simply sets the vector to -1 while the points remain the same orientation as they were; I'm assuming I need to set the matrix on the points ?

 

Share this post


Link to post
Share on other sites
Posted (edited)

use the popLookAt node.

This operator modifies the orient, torque, targetw, and spinresist attributes.

Edited by Jesper Rahlff

Share this post


Link to post
Share on other sites

Sorry, going to have to re-phrase the question, slightly different then what I intended :)

matrix sAngle = ident();
vector axis = {0,1,0};
float rrot = radians(ch("AngleDir"));
rotate(sAngle,rrot,axis);
@P *= sAngle;

To rotate my points I have to manually adjust my channel slider.  How can I make the channel slider the global channel slider which controls how much is rotated based on the velocity ? 

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

×