You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How do I change the twist axis in three.js. Thank you so much for updating this. It is working great so far! I can only twist along one axis so far. Amazing work!
Dan
The text was updated successfully, but these errors were encountered:
Twist modifier has a parameter vector with respect to which the twist is performed.
The default value is the Y axis ([0,1,0]) To twist to another axis e.g Z do sth like this:
vartwist=newMOD3.Twist();twist.vector=newMOD3.Vector3(0,0,1);// Z axis// rest code
After further update the relevant code for the Twist modifier is this
Note that one can pass the twist vector in the initialisation of the modifier (it is part of the parameters and similar to other modifiers), although the example code given above will continue to work correctly as expected.
How do I change the twist axis in three.js. Thank you so much for updating this. It is working great so far! I can only twist along one axis so far. Amazing work!
Dan
The text was updated successfully, but these errors were encountered: