WorldViz User Forum  

Go Back   WorldViz User Forum > Plug-in development

 
 
Thread Tools Rating: Thread Rating: 6 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a Vizard Sensor Plugin farshizzo Plug-in development 25 08-01-2019 12:24 AM
Sensor callback to the wii mote buttons shivanangel Vizard 3 03-14-2008 09:45 AM
wiimote and sensor bar masaki Vizard 1 03-06-2008 03:07 PM
Multiple Copies of same sensor plugin RedSpikeyThing Plug-in development 2 02-12-2008 02:10 PM
using sensor data in Physics1.py Eunice Vizard 4 01-03-2006 05:18 AM


All times are GMT -7. The time now is 03:15 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC