Gun / Camera Sway, How do i do it?

Hey guys i’m back to creating my own fps framework. How can i let the model sway like this:

This is what i currently have:

https://i.gyazo.com/5e962a38cbb9c9dc05dea987cd0dfbdd.gif

As you can see its a little stiff. I would like to have the hands sort of drag towards the current position of the camera. As seen in the top video.

I’ve searched for tutorials and didn’t find anything really specific to this topic. I did learn about math.sin and Lerp() though. I have no idea where to start or what I’m supposed to do.

Thanks for reading

That smooth movment actually uses Hooke’s law, which describes the moition of springs
This video by egomoose should help you understand how to do it and it doesn’t really involve any triganomtry just basic math
He does show that phantom forces uses this mechanic

6 Likes