Thread: Timer issues
View Single Post
  #2  
Old 07-06-2012, 05:03 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
Register a callback function for the EnterProximity event. Within the callback function you can record the sensor and simulation time to a file:
Code:
def EnterProximity(e):
	"""@args vizproximity.ProximityEvent()"""
	sensor = e.sensor
	time = viz.getFrameTime()
	
	#record sensor and time to file

manager.onEnter(None,EnterProximity)
Reply With Quote