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

Reply With Quote