![]() |
|
|||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Quote:
is there a way to draw one line and keep updating the position |
|
#2
|
|||
|
|||
|
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) |
|
#3
|
|||
|
|||
|
Quote:
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? |
|
#4
|
|||
|
|||
|
Quote:
|
|
#5
|
|||
|
|||
|
Yes, you can modify vertices to change the length of the line. Take a look at the changing vertices page from the on-the-fly section. Does this help answer your question?
|
|
#6
|
|||
|
|||
|
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Create object with position relative to user head, but cannot be obstructed by others | Notch | Vizard | 2 | 03-03-2014 08:16 AM |
| Create a clipping box | pswaney | Vizard | 1 | 03-01-2013 01:19 PM |
| How to create AMTI AccuGait force plate plug-in using serial port connection? | manueleh | Plug-in development | 0 | 09-20-2012 02:22 PM |
| Dynamic Position and Radius of Sphere | hotshotiguana | Vizard | 1 | 03-23-2011 01:53 PM |
| Create Button or Text | Chrissy2009 | Vizard | 1 | 07-15-2009 06:34 PM |