How to use "rotate" function in wrangle?

   16217   2   1
User Avatar
Member
24 posts
Joined: 5月 2012
Offline
I want to rotate the point normal.
With point vop,I made it.

But I don't know,how to put it into wrangle!

I write the code like this:

float rotateamp = 0.2;
matrix3 mar = {{1,0,0},{0,1,0},{0,0,1}};
@N *= normalize(rotate(mar,length(@P),{1,0,0}));


I get error!

How should I get the same result in wrangle, like the vop effect!

Attachments:
rotate_in_wrangle.hip (89.0 KB)

User Avatar
Member
51 posts
Joined: 11月 2015
Offline
float angle = 0.8;
matrix rot = ident();
vector axis = {0,1,0};
rotate(rot, angle , axis);
vector rotateP = @P * rot;
@P = rotateP;

//angle is in Radian

this is for rotating object
2 x Xeon E5-2670 - 64 GB DDR3 RAM - Nvidia GTX 960 - Win 10 64x
User Avatar
Member
24 posts
Joined: 5月 2012
Offline
mosssi
float angle = 0.8;
matrix rot = ident();
vector axis = {0,1,0};
rotate(rot, angle , axis);
vector rotateP = @P * rot;
@P = rotateP;

//angle is in Radian

this is for rotating object

Many many thanks!!!!
It worked!

Got it!!!!

  • Quick Links