Masturbation typically involves self-stimulation of the genitals, and using a pillow can provide comfort and support. To do this, you might press your body against the pillow while using your hands for stimulation. It's essential to prioritize comfort and privacy while engaging in any form of sexual activity. Always remember to practice safe and consensual behaviors.