speedX only calculated and locationX only updated if visible