trying line equation fr unit moving