I know this has been asked before, but I simple can't get this to work correctly.
I got a curve with a lot of points. I put N and Tangentu on the points with a polyframe and in a Pointwrangle I have the following:
___
float twist = chf('twist');
vector tnorm = normalize(@tangentu);
matrix3 m = ident();
rotate(m, twist, tnorm);
@N *= m;
___
- twist is a float slider.
The Normals rotate, but on some weird axis. I obviously need them to rotate around Tangentu
Hip file attached
rotate point normals around tangents in vex
9091 4 2- pingo
- Member
- 30 posts
- Joined: March 2006
- Offline
- Aizatulin
- Member
- 495 posts
- Joined: July 2005
- Offline
- AndyW
- Member
- 339 posts
- Joined: Dec. 2014
- Offline
- pingo
- Member
- 30 posts
- Joined: March 2006
- Offline
- endframe
- Member
- 6 posts
- Joined: Feb. 2019
- Offline
-
- Quick Links