Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BeamNGpy should provide a Timer Sensor #19

Closed
alessiogambi opened this issue Jan 3, 2019 · 1 comment
Closed

BeamNGpy should provide a Timer Sensor #19

alessiogambi opened this issue Jan 3, 2019 · 1 comment

Comments

@alessiogambi
Copy link
Contributor

In many occasions, it is important to know the exact time of the simulation. A timer/watch or similar sensor might do it

@Palculator
Copy link
Contributor

I've added a simple timer sensor that gives time relative to the start of the scenario, accounting for possible slowdown/speedup in the simulation (e.g. if you run it at twice the speed of real time, the sensor will also progress twice as fast.)

https://beamngpy.readthedocs.io/en/latest/api/beamngpy.html#beamngpy.sensors.Timer

A simple example is in the examples/west_coast_usa.py example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants