I'm building a robot in V-REP which needs a sensor to provide it's current direction based on virtual world. In real world we can use a magnetometer to do this, and then all robots will have a unique referencial to its direction.
Hi, there are IMU sensors in V-Rep software, but I have not find the compass sensor inside yet, Besides, there is also a forum for V-Rep. You can browse that forum or ask a question there.