Announcement

Collapse
No announcement yet.

How to make a simple up and down "head bob" for first person game's camera??

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to make a simple up and down "head bob" for first person game's camera??

    Hi, I'm trying to make a first person game, but I'm not how to go about making the camera go up and down as player walks or runs forward. I've looked up tutorials on YouTube for this, but they all seem to be trying to emulate a shaky-handheld camera look. It makes me feel sick/nauseous and is undesirable. I would like for the camera to look like in this game or similar:
    https://www.youtube.com/watch?v=IWSBYUPWMk0&t=17m20s
    Last edited by tapirtoon; 08-16-2019, 05:44 PM.

    #2
    I think you could just adjust the cameras Z position based on a curve. Your curve would have slight bounce to it. This would be the easiest approach.

    Alternatively, you can have an animation which has bobbing movement and then you attach the camera position to the neck bone. You'd get head bobbing for free, but it might be slightly jerky depending on the walk/run animations you use. You could do some smoothing code to remove some of the animation jerkiness. With this approach, you get blended head bobbing for free, simply by using the animation to drive camera movement. You'd still have to decouple the camera orientation from the animation though -- you'll probably want to have the camera drive the head rotation via the animation blueprint.

    Comment

    Working...
    X