WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Checking 2 sensors distance from each other (https://forum.worldviz.com/showthread.php?t=1895)

durf 03-10-2009 10:30 AM

Checking 2 sensors distance from each other
 
How do you check to see if a sensor is getting close to another sensor.

Like if ppt1 is 3 ft(in real world) or less from ppt2 I want a reaction to happen.

Jeff 03-10-2009 12:52 PM

You can use vizmat.Distance to calculate the distance of two points from eachother. You can get the positions of your sensors with a timer, pass them to vizmat.Distance and if its under a certain value have your reaction occur.


All times are GMT -7. The time now is 04:46 PM.

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