Author Topic: Weapon sway  (Read 814 times)


  • Playmaker Newbie
  • *
  • Posts: 19
    • View Profile
Weapon sway
« on: January 16, 2018, 07:09:11 AM »
Hi all,

So I'm looking to add a weapon to a first person character I have set up already. It will be parented to my player capsule, which I also have the camera attached to. What I'm looking to achieve is to have some lag with the weapon so there is a slight delay when I turn and it catches up to simulate arm/weapon sway.

Any ideas the best way to do this?

Thanks in advance!


  • Administrator
  • Hero Member
  • *****
  • Posts: 15398
  • Official Playmaker Support
    • View Profile
Re: Weapon sway
« Reply #1 on: January 16, 2018, 11:48:20 PM »

 one way is to use Lerping:

have an dummy object not attached to anything, make it follow the tip of the virtual gun ( again a dummy, or your gun as you have it right now) but make it follow with a slight lerp value so that it always catches up with. Use this object as the target for the lookat behavior of your real gun.

 Does that make sense?