Nah, must be electromagnetic waves that can pass through your bod.
So a button that sends out like ten pings per second, other buttons receive this signal and depending on the signal strength it can determine how far away the other button is. Also, by comparing historic data it can determine if the other button is coming closer and at what speed and acceleration.
Add a directional antenna to this button that sends stronger signal infront of you, meaning it draws out your "event cone" with a stronger signal.
There are drawbacks of course, but I wont mention them until I've sold the product lol.