It's usually not a problem at a urinal. I just make sure that my shirt is lifted up out of the way.
Standing at a toilet can be problematical. If I'm wearing gym shorts, I take the penis out the bottom of the right leg and it works fine. If I'm wearing anything else, I have to be careful. The main streams shoots outward, but there is a minor stream that drips straight down. I have to stand over the toilet, not in front of it, or the pee will dribble on my pants and on the floor. I've found it easier to just sit down at home and not deal with the mess on my floor and on my pants.