question to rotate() vex

   5117   2   0
User Avatar
Member
288 posts
Joined: July 2005
Offline
I used to do rotate P with RSL like : rotate(P, angle, point(0,0,0),point(0,1,0)), so I can rotate the P around the Y axis.

I tried to do the same thing with vex, rotate(P,angle,{0,1,0}), but it doesn't work. The rotate() in document said it should be rotate(matrix……), How to change my P into matrix to make it work?

thanks to any anwser.
^_^
User Avatar
Member
639 posts
Joined: July 2005
Offline
matrix rot = ident();
rotate(rot, angle, {0,1,0});
vector rotP = P * rot;
User Avatar
Member
288 posts
Joined: July 2005
Offline
it's helpful, thx
^_^
  • Quick Links