![]() |
#4
|
|||
|
|||
You can get the forward vectors of the parts and fittings from their transform matrices.
Code:
partForwardVector = part.getMatrix().getForward() What you'll want to do is name some sub-nodes of your hollow cylinder and call collideBox(node="subobject1") on them. The docs have an example on this with the table.wrl object: Code:
table = viz.add('table.wrl',pos=[0,3,6.5],euler=[90,45,90]) # Add table table.collideBox(node='Leg1') # Define table.collideBox(node='Leg2') # collision table.collideBox(node='Leg3') # area table.collideBox(node='Leg4') # for table.collideBox(node='Top') # parts
__________________
Paul Elliott WorldViz LLC |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Need help with a project | mberkes | Vizard | 14 | 05-27-2009 11:54 AM |
New project need HELP | minawageh | Vizard | 5 | 03-17-2009 03:17 PM |
Project .avi or .mpeg file | pattie | Vizard | 2 | 02-06-2007 08:09 AM |