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])