View Single Post
  #2  
Old 07-10-2008, 06:52 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
To enable orientation control with the spring you need to add the viz.LINK_ORI flag. Your code for creating the spring would look something like this:
Code:
spring = cyl.addSpring(viz.LINK_POS|viz.LINK_ORI,linearKd=100,linearKs=10000, angularKs=100, angularKd=10)
For apply forces the ConstantEffect should work. Does the sample script that comes with our Sensable Haptic Device download work for you?
Reply With Quote