Object stopped moving detection

Is there method or function to detect when an object has stopped moving? I'm currently working out a state based heuristic based off the number of frames after an object's transform has remained the same its all very clunky and ugly. Any elegant solution out there?

Found the solution on my own. The object in question has a CharacterController on it, just used that velocity property and checked against Vector3.zero.

Thanks