An X-ray apparatus comprises an X-ray tube (2), an X-ray detector (4) placed opposite the X-ray tube (2) in a direction of emission of X-rays, and a mobile device (8) on which the X-ray tube and the X-ray detector are mounted, the said mobile device comprising driving means capable of causing the automatic movement of the X-ray apparatus. The apparatus comprises an impact-sensing system coupled to the driving means in order to control the movement of the mobile device in the event of an impact applied to the X-ray apparatus.