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
9081 4 2- pingo
- Member
- 30 posts
- Joined: 3月 2006
- Offline
- Aizatulin
- Member
- 495 posts
- Joined: 7月 2005
- Offline
- AndyW
- Member
- 339 posts
- Joined: 12月 2014
- Offline
- pingo
- Member
- 30 posts
- Joined: 3月 2006
- Offline
- endframe
- Member
- 6 posts
- Joined: 2月 2019
- Offline
-
- Quick Links