After reading the documentation of the very nice Ultimate FPS add-on for Unity, i've decided to try something similar in my own camera control. Right now, my camera is pretty basic and just puts a weapon model in front of it. I've successfully added some "damping" effect by calculating the weapon "weight"... when you move, there's a slight motion to the weapon model, like this:
In UFPS, they explain other concepts for procedural animation:
However, i have no idea how to apply a standard noise function to produce idle animation. Should i just apply it randomly to the entire transformation matrix of the model? Including rotation? How would you approach this?
Also, since i'm trying to do most of the animations in code, and just use a plain model without animation, which kind of noise/curve would you guys use for creating the shooting animation? I tried using a https://en.wikipedia.org/wiki/Lissajous_curve but it feels very weird, works better for sniper scopes only.