A system includes a surgical device, an instrument coupled to the surgical device and defining an instrument axis, and a processor operatively coupled to the surgical device. The processor is configured to determine a current orientation angle of an instrument axis based on an orientation of a target axis, establish a virtual boundary, control the surgical device to apply a force to constrain the instrument axis within the virtual boundary, and collapse the virtual boundary as the instrument axis is brought into alignment with the target axis.