![]() |
#13
|
|||
|
|||
sorry i tried with this code also...but not working
Code:
def toggleLink(): global link if link: #If link exits, stop grabbing link.remove() link = None if vizmat.Distance(hand.getPosition(), ball.getPosition()) < .5: link = viz.grab( hand, ball ) if vizmat.Distance(hand.getPosition(),crank.getPosition()) < .5: link=viz.grab ( hand, crank) vizact.onmousedown(viz.MOUSEBUTTON_RIGHT ,toggleLink) |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Any ideas on linking chess 3ds file with source code? | djones1010 | Vizard | 1 | 04-24-2009 09:56 PM |
Trying to integrate Source Code with Vizard | djones1010 | Vizard | 1 | 03-10-2009 02:58 PM |
Vizard Tip of the Month: Use Tasks to Simplify your Code | Gladsomebeast | Vizard | 5 | 05-02-2008 04:30 PM |
3D Music Interface | Psirus | Vizard | 3 | 02-26-2008 11:48 AM |
Vizard Crashes: causes are hard to determine, possible problem with the viz code | vr_boyko | Vizard | 1 | 01-07-2005 10:52 AM |