Detect object speed?
Keep track of the objects previous position. Algorithm:

on each logic tick:
     speed_vector = current_position - previous_position
     speed = speed_vector.length()
     previous_position = current_position