This application discloses a method, apparatus, device, medium, and program product for controlling virtual objects, relating to the field of interface interaction. The method includes: displaying a main virtual object and virtual scene elements in a virtual scene; responding to receiving a selection operation on a virtual scene element, displaying an indicator beam at the location of the virtual scene element; and responding to receiving an element interaction operation, controlling the main virtual object to move towards the location of the virtual scene element. By selecting virtual scene elements to be interacted with in the virtual scene, and interacting with the virtual scene elements by displaying an indicator beam during selection, the interaction methods between the main virtual object and elements in the virtual scene are increased, the accuracy of the interaction between the main virtual object and virtual scene elements is improved, and the diversity of interaction is enhanced.