View Single Post
  #5  
Old 09-18-2013, 02:55 PM
sunil.nair sunil.nair is offline
Member
 
Join Date: Aug 2013
Posts: 14
No, but i want my car to be linked to the haptic device. i do not want to give an animation. i want to drive it using the haptic over the cylinder. This is how i add the cylinder.

cylinder=vizshape.addCylinder(height=2.5,radius=4, topRadius=None,bottomRadius=None,axis=vizshape.AXI S_X,slices=20,bottom=True,top=True)
cylinder.visible(viz.OFF)
cylinder.setPosition([4,0,0])
cylinder.setScale(1,.1,0.3)
cylinder.collideMesh()
cylinder.disable(viz.DYNAMICS)
cylinder.visible(viz.ON)

i sit possible to switch on collision for the car and drive it over the cylinder.
Reply With Quote