Author Topic: onVehicleTouch - a do-over?  (Read 1434 times)

Motion sensor: I COULD use zones to detect when a vehicle enters a lift or garage, but that won't be accurate if I want it to specifically stop at tire marks. If I use onVehicleTouch, I can have 4 spots and be specific about each tire being locked down (not sure if tires are detected but one can hope)
I'm not even sure how you plan to accomplish this in the first place, but you could definitely do the same thing by setting down four zonebricks where the tires will be
Might be able to do a thing where there's a latent zone and have the zone check if the vehicle is at a certain coordinate and rotation through VCE, where if it fails, it fires a non-looping relay to disable and reset the zone, which checks for the vehicle entering the zone, and does position and rotation checks again.  When it matches to a satisfactory degree of accuracy, you can then run the other events for whatever OP wanted to do once the vehicle was aligned.
problem with each one of you trying to figure this out is that onvehicletouch isn't any better than onvehicleenterzone for this
I'm pretty sure it's not the wheels of the vehicle that trigger onvehicletouch, but the bounding box being right next to it

but to do it, you could just see when the vehicle gets far forward enough and is past the door

I have no way of testing how reliable the zone events are until I get back home on Friday, so I'll just have to take your word for it. If they work as well as fox, Swat and you (Phflack) claim, then I'll just lock the topic since there'd obviously be no need for such an addon. Until then I'm going to leave the topic unlocked in case anyone tries to test those events and they don't work, or in the case that someone comes up with an addon even though it's possibly not even necessary.

if you need something specific let me know what it is