Added basic support for direction via how an object is moving, but need to deal with the case where an object is stopped.