A good setup makes bunker shots almost automatic
A lot of players try to gouge the ball out with a hard swing that digs with the leading edge, or they hang back and try to scoop it out. Neither is a reliable technique. Instead, open the face, set your grip, and open your stance slightly while keeping the ball position just forward of centre. This combination will let you make a regular pitch swing on the line shown here and get the club sliding through the sand at a depth just under the ball.