View Single Post
  #3  
Old 05-12-2009, 02:26 AM
nasr nasr is offline
Member
 
Join Date: Apr 2009
Posts: 27
how to move the other part

Code:
def toggleLink():
	global link
	if link:
		#If link exits, stop grabbing
		link.remove()
		link = None

	elif vizmat.Distance(hand.getPosition(), ball.getPosition()) < .5:
		link = viz.grab( hand, ball )

vizact.onpick(ball,toggleLink)
with this code i am able to one component using the marker. i have included one more component.. when i am trying to pick the other component the first component is also moving how to disable the link between the market and first component?
Reply With Quote