View Single Post
  #2  
Old 06-13-2008, 10:12 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
The InitializeSensor function is where you should initialize the connection to the device. You should set the status variable of the senor structure to TRUE or FALSE depending on if the initialized succeeded or failed.

The UpdateSensor function is called every frame and this is where you will place the tracking data into the data variable of the sensor structure.

Finally, the CloseSensor function is called when the script shuts down. This where you would disconnect from the device and cleanup your plugin.
Reply With Quote