Disclosed herein are system, method, and computer program product embodiments a 6 degree-of-freedom (6DoF) correction trajectory in order to compensate movement of a treatment target in a patient supported by a patient support end-effector. An embodiment operates by receiving a starting end-effector position, a starting clinical target position, and a target destination position. The target destination position corresponds to a position in space receiving targeted treatment from a treatment delivery device. The embodiment determines a destination end-effector position in 6DoF associated with the end-effector that would cause the target to be positioned on the target destination position. A trajectory is calculated between the starting end-effector position and the destination end-effector position. The embodiment transmits, to a mechanical device controlling movement of the end-effector, one or more signals causing the end-effector to move from the starting end-effector position to the destination end-effector position along the determined trajectory.