We developed a system for the rehabilitation of precise movements of the upper limbs in the virtual reality environment. The game was developed in close cooperation with the University Rehabilitation Institute Soča, where the solution is tested and used. The game has several difficulty levels and allows you to track the movements of the user in the rehabilitation process. The solution works by using Oculus Rift’s virtual glasses and the Leap Motion sensor, which serves to track the movements of the upper limbs of the user. Within the framework of the testing, the device proved to be useful and represents a great potential in the functional rehabilitation of the upper limbs.