Counter strike recoil feel
Posted: Sat Mar 17, 2012 8:14 pm
http://www.youtube.com/watch?v=gGXijf32L1g
I would like to have the same recoil-feel counter strike has.
I'm currently focusing on the camera angle (the pitch, not the yaw) and not the bullet trajectories.
I had some feedback and code from a cspromod dev who reverse engineered counter-strike behavior, but it lacks the KickBack() function and I'm stuck for now.
I found some simple function f(t) = c*t*exp(1-c*t). c is a constant, t is time and it behaves like this https://www.google.fr/search?aq=f&ix=hc ... rom+0+to+1
The function works for single shots, but for full automatic weapon it does not because it does not accumulate.
I wonder if I should use some other kind of algorithm, like some integration ? I thought that when shooting bullets, the body muscles work like springs and dampers, and I wonder if there are some facilities in bulletphysics to do that.
So 2 questions:
Have you any idea or experience about recoil simulation in FPS games like counter strike, call of duty ?
If not how would you simulate a spring+damper force in bullet (and is it a good idea) ?
I would like to have the same recoil-feel counter strike has.
I'm currently focusing on the camera angle (the pitch, not the yaw) and not the bullet trajectories.
I had some feedback and code from a cspromod dev who reverse engineered counter-strike behavior, but it lacks the KickBack() function and I'm stuck for now.
I found some simple function f(t) = c*t*exp(1-c*t). c is a constant, t is time and it behaves like this https://www.google.fr/search?aq=f&ix=hc ... rom+0+to+1
The function works for single shots, but for full automatic weapon it does not because it does not accumulate.
I wonder if I should use some other kind of algorithm, like some integration ? I thought that when shooting bullets, the body muscles work like springs and dampers, and I wonder if there are some facilities in bulletphysics to do that.
So 2 questions:
Have you any idea or experience about recoil simulation in FPS games like counter strike, call of duty ?
If not how would you simulate a spring+damper force in bullet (and is it a good idea) ?