enki-community / enki

A fast 2-D robot simulator. To contact us, please open an issue.
Other
36 stars 34 forks source link

Adding a unique identifier for each object #40

Closed sebpouteau closed 7 years ago

sebpouteau commented 7 years ago

Hello,

During our programming with david Sherman, We had to create a remote view of a simulation.

To realize this project successfully, we were faced with a problem, which was that the objects did not have unique identification, so it was impossible for us to identify each object in the remote view.

We were therefore obliged to add an identifier to each PhyscalObject of the simulation.

This minor modification will allow enki to add a remote view.

What do you think?

stephanemagnenat commented 7 years ago

Having a unique identifier makes sense, but I would do it differently:

Hence, uid is never uninitialized.