Diagram
This occurs at earth
Object B is in a cannon.
Object A is the sphere
The cannon is aimed at object A such that a laser pointer is pointing in the direction in which the Projectile B will initially travel, ie along the firing axis.
Object A drops the instant the cannon fires...