![]() |
Turn around the y-axis
Hello,
how can I turn my drawn layer around the y-axis? Code:
viz.startlayer(viz.LINES) I've tested this: Code:
def keyboardAction(key): I want to turn the line around the y-axis, but one point should be fixed. So only the second point of the line should turn around. That it looks like one point is fixed and the other point of the line turns around the fixed point. For example: I draw this line and if I push the key '1' then the second point turns about 10 degree around the y-axis. Is this possible? |
I've solved my problem with this:
Code:
vec1.rotate(1,0,0,'',viz.RELATIVE_LOCAL) So the first vertex should be fixed and the second one should rotate around this first one. Currently my object rotates both vertex and the rotation point seems to be in the middle of the line. |
You can use the
Code:
vec1.center(2,3,5) |
All times are GMT -7. The time now is 07:09 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC