If you're hitting your leg then I would raise your drum (assuming that your seat is already at a comfortable height). If you are hitting the rim a lot with it raised, then angle it more towards you. I would change the height and/or angle in small increments, then live with it for a few days and see how it feels. It takes time and experimentation to find the best setup for you, don't try to rush it.
The way I personally set my snare drum is to close my eyes, pretend I'm hitting a full stroke, and stop the stick at the bottom. That's where I want the center of the snare batter head to be. Raise or lower the drum accordingly. Hopefully at this height you are not hitting your legs with your hands or the butt of the sticks. If you are, then you'll have to compromise. It depends a lot on your anatomy. If you have longer-than-average arms, then you might need to live with hitting your thigh, or raising the drum higher than optimal. There are some great drummers that hit their legs, so it's not the end of the world if that setup is most comfortable for you.
Once the height is set, I work on the tilt. Again, with eyes closed and a full stroke, I want to hit a rimshot, so I adjust the angle to make that happen. If there's no rimshot, I tilt it away from me slightly to bring the near edge of the hoop higher. If there's too much rim, than I tilt it towards me. I do this with both hands until a natural stroke with either hand results in a clean rimshot.
Now after all of this fine-tuning of snare position, I still occasional get nothing but rim, or "thin" rimshots, because my stroke is not very consistent. That just takes practice. When I practice at home, I try for rimshots as much as possible. Same as with band practice. When I play a gig, I play it safe and don't try for a rimshot on every backbeat, because the audience doesn't like it when they're dancing and they hear a click instead of a snare crack. I suppose that when I can hit 95+ out of 100 attempts, I'll consider that good enough for live work.