WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 11-10-2014, 03:13 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
1) Make sure the walls are added to the haptic simulation using the device.addNode(node) command. The front of the car (not center) should be aligned with the haptic device if you want resistance when the front touches the wall.

2) The following code should add a spring effect:

Code:
import viz
viz.go()

sensable = viz.add('sensable.dle')
device = sensable.addHapticDevice()
spring = device.addSpringEffect(gain=0.2,magnitude=0.5,position=[0,0,0])
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get real time position of a object which is connected to a haptic device Melody Vizard 4 09-15-2014 02:35 PM
haptic device problem guof6570969 Vizard 2 06-09-2010 02:37 AM
Haptic Device Shadows vTony Vizard 1 05-04-2009 05:58 PM
Phantom Omni Device Scripts vSuejung Vizard 1 09-17-2008 04:42 PM
Phantom Device Getting Stuck vjosh Vizard 1 05-09-2005 11:16 AM


All times are GMT -7. The time now is 07:37 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC