Is there a prebuilt function that checks if an object is in motion? A function that checks x,y,z tranform to tell if the object is in motion or at rest?
If not, any ideas on how to acomplish this task?
asked Sep 08, 2010 at 12:28 AM
If you have a rigidbody, then you can do
If you are using a Character Controller, then checking to see if
Or, you can manually save a Vector3 every frame that remembers the last position. Something like:
answered Sep 08, 2010 at 01:38 AM