Hi,
As the title suggests, I'm trying to get the speed of a game object using Playmaker. I have tried various methods with different degrees of success, but I haven't been able to get a really stable speed value.
I understand the basic principle to determine speed is to get distance traveled and divide it by the time it took.
So I figure that a single state where I get the 'start position' of my object subtract it from the 'end position' to get the distance, then divide it by time.deltaTime to get the speed:
This works in that it gives a value that appears to match the speed of the object, however the value is not steady. Even though the object is moving the same distance each frame the deltaTime is variable and so the value constantly fluctuates a few units up and down.
How can I get a more accurate speed value?
Thanks!