![]() |
|
#2
|
|||
|
|||
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]) |
|
|
![]() |
||||
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 |