Hi! I've been trying to get proper recoil in my FPS game for a few days now but I'm having trouble. What I mean by proper is the closer you get to a wall the more accurate it is and the farther away you get the more inaccurate it gets. Shooting in general also decreases your accuracy. I'm trying to make the recoil by rotating the camera in a random direction on the X and Y axis so it's pointing the direction the bullet will go then I move the camera forward far then reset it's position/rotation and ray cast for collisions. Where I'm having troubles is rotating it along the X and Y axis so it properly resembles realistic gun accuracy. I had it working but the problem was, was that after shooting in a single area it made a checker board pattern so it wasn't circular and it had perfect distance between each shot. So what is a formula I could use to get the value to rotate the camera along the X and Y axis so that when I shoot it would eventually form a circle?
P.S. I know I made a thread a bit back regarding this issue but that was revolving around a game that uses different values then my current one does and I lost it in a hard drive crash.
Games are like life, they should never stand still.