I'm looking for a way to detect when an object has stopped.
The object is moving on the X and Z axes and will stop at some point.
I would like to detect that the object is stopped using X floats and Z floats, but I can't imagine how to build an FSM and the action.
Any good advice on how to build an FSM and what actions to take?