vizmat.Distance(hand.getPosition(), ball.getPosition()) < .5: link = viz.grab( hand, ball )
vizact.onpick(ball,toggleLink)
paul
in the above code im able to grab the ball only. if im trying this loop with an if condition, after selecting the ball im not able to stop the ball how to change the code?
|