playMaker

Author Topic: Animating view bob and weapon sway  (Read 1965 times)

cardo

  • Playmaker Newbie
  • *
  • Posts: 19
Animating view bob and weapon sway
« on: October 09, 2019, 03:01:54 PM »
Hi all,

Looking for a simple way to animate a simple weapon sway and view bob using Playmaker, but am pretty stumped with where to begin! Unsure if this should be an animation that is triggered to move the weapon back and forth when the player moves, or if there’s a quicker way to add a curve to move the weapon instead

I’m not sure what the normal way of doing this kind of movement is within unity or whether a spring arm can do this instead?

Any ideas are very welcome!  :D

Thore

  • Sr. Member
  • ****
  • Posts: 480
Re: Animating view bob and weapon sway
« Reply #1 on: October 09, 2019, 04:14:50 PM »
You could animate the camera with an animation controller, and mechanim states.

cardo

  • Playmaker Newbie
  • *
  • Posts: 19
Re: Animating view bob and weapon sway
« Reply #2 on: October 12, 2019, 04:27:12 PM »
You could animate the camera with an animation controller, and mechanim states.

Thanks! That was going to be my initial go to, but thought there might be easier way without creating canned animations?

Maybe lerping between 2 variables using a playmaker action? I’m just not sure how to set it up.

Thore

  • Sr. Member
  • ****
  • Posts: 480
Re: Animating view bob and weapon sway
« Reply #3 on: October 12, 2019, 06:41:07 PM »
The animation is certainly the easiest method there is. The not so easy part is mechanim, but you can bypass most of the clutch with PlayMaker and the animation crossfade action.