View Single Post
  #1  
Old 03-17-2015, 03:11 AM
lmGehrke lmGehrke is offline
Member
 
Join Date: Dec 2014
Posts: 3
Orientation selective (Viewing Vector) Proximity Sensor

For a research paradigm I want to implement a proximity sensor that is activated when a subject is looking, facing its heading direction towards a certain object. I could only find the proximity sensor function for certain positions and not orientation.

So I would like something like this:

Code:
initialHeadingPole = viz.add('pole.wrl')
initialHeadingPoleSensor = vizproximity.Sensor(vizproximity.RectangleArea([3,2]), source=initialHeadingPole)

manager = vizproximity.Manager()
manager.setDebug(viz.ON)
#debugEventHandle = vizact.onkeydown('d',manager.setDebug,viz.TOGGLE)
#Add main viewpoint as proximity target
target = vizproximity.Target(viz.MainView)
manager.addSensor(initialHeadingPoleSensor)
Any help would be greatly appreciated!
Reply With Quote