Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: cardo on January 16, 2018, 09: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!
-
Hi,
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?
Bye,
Jean