![]()  | 
	
		
 Is that possible to create some connection between to sphere? 
		
		
		For example, I add two spheres into Vizard to represent the joints. 
	However, I want to create a line or some other things which can connect these two joints. When the position of the joints change, the line will move follow the joints. Thanks.  | 
		
 You could create an on-the-fly line to connect the two spheres. 
	 | 
		
 Quote: 
	
 Code: 
	import viz,vizact,vizshape, vizmat | 
		
 If you want to draw a line, create a layer with viz.lines and use the center point of each sphere as a vertex. You can update the vertex positions as the sphere positions change. 
	 | 
		
 Quote: 
	
 is there a way to draw one line and keep updating the position  | 
		
 Yes, once you create the line you can move it like any other object: 
	Code: 
	import viz | 
		
 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?  | 
		
 Quote: 
	
  | 
		
 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? 
	 | 
		
 Quote: 
	
  | 
| All times are GMT -7. The time now is 06:32 AM. | 
	Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
	
	Copyright 2002-2023 WorldViz LLC