how to get velocity of entity?

I’ve got a bunch of entities that we’ve semi-randomly generated position paths using a SampledPositionProperty.

While the viewer is playing, I’d like to query the velocity of each entity so I can display in a table. I cannot seem to find a way to do this. Looking for an example.


  • Jim

You could use a velocity vector property, which will automatically compute the velocity from taking samples:

This time dynamic wheels example uses it to compute the vehicle’s speed and display it as a label: