Quote:
Originally Posted by Jeff
Yes, once you create the line you can move it like any other object:
Code:
import viz
import vizshape
viz.go()
viz.clearcolor(viz.SLATE)
vizshape.addGrid()
viz.startLayer(viz.LINES)
viz.vertex(0,0,0)
viz.vertex(0,1,0)
line = viz.endLayer()
line.setPosition([2,0,7])
line.color(viz.RED)
|
Is there a way to change the position of line only by change the vertex of it?
In the code you gave to me, the length of the line is fixed, is that possible to get a line which will change its length according to the position of vertex?