View Single Post
  #5  
Old 06-30-2009, 03:11 AM
minawageh minawageh is offline
Member
 
Join Date: Mar 2009
Posts: 6
Quote:
Originally Posted by Gladsomebeast View Post
You can get the forward vectors of the parts and fittings from their transform matrices.
Code:
partForwardVector = part.getMatrix().getForward()
The physics system does not support dynamic forces, like gravity, on collideMesh shapes. Complex shapes need to be made up of multiple simple shapes like boxes and spheres.

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



thx very much for your help but i don't know how to make sub-nodes and i don't know if i can do it in vizard or i must make it in athor programes like 3d max
and i don't know what to do with
partForwardVector = part.getMatrix().getForward()
and how to use it
Reply With Quote