Manage Camera Bob for 1st person

Hi all,

I’m struggling having a proper camera shake for my 1st person character.

What I’m trying to achieve is the following:

  • camera shake if the player is not moving (already working)
  • camera shake if the player is walking (not implemented yet)
  • camera shake if the player is walking (already working)
  • camera shake when the player lands after jumping (not implemented yet)

Here is what I have inside my 1st person BP :

I’m activating the Camera Shake for the run if the player exceeds a certain speed. And then stop it if it’s not the case

This is for the normal Camera Shake if the player is not moving. It seems to work fine but I’m not sure if it’s the right way to do that.

Right now, I don’t know how to detect if the player is not moving, which would help me a lot.
What I’d like to do is manage all these camera shakes in a proper way.

As for the jump, I’ve been told that I need to use the Is **Moving On Ground **node but it doesn’t seem to work properly…

Sorry for the long post and thanks in advance!

Not sure about the Camera shake after landing on ground, but one way to get whether the player is moving or not is getting the velocity, then getting the length of the vector. If its 0 (Or around 0, depending on whatever you’re doing for your game), then its not moving.

nogdoesrandomstuff, thanks for your input!

I understand the logic but how this could be hooked into a branch node? So I can play the camera shake accordingly?

Sorry for the hassle, thank you in advance!