PDA

View Full Version : Checking 2 sensors distance from each other


durf
03-10-2009, 10:30 AM
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.