playMaker

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

cardo

  • Playmaker Newbie
  • *
  • Posts: 15
    • View Profile
Animating view bob and weapon sway
« on: October 09, 2019, 12: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: 329
    • View Profile
Re: Animating view bob and weapon sway
« Reply #1 on: October 09, 2019, 01:14:50 PM »
You could animate the camera with an animation controller, and mechanim states.

cardo

  • Playmaker Newbie
  • *
  • Posts: 15
    • View Profile
Re: Animating view bob and weapon sway
« Reply #2 on: October 12, 2019, 01: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: 329
    • View Profile
Re: Animating view bob and weapon sway
« Reply #3 on: October 12, 2019, 03: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.