play and stop animation when change camera position

Hi all,
So, my character is used for VR - using pawn. I have walking animation going on only on legs.
Would it be possible to start the animation as soon as I move my head/camera forward or backward and left or right? And to stop the animation when I stop moving my camera?
If yes, how I could do that in BP. ??
I would really appreciate any help people!

This is certainly possible, though making it look good in VR may be fairly complicated. What you would want to do is get the velocity and direction of the camera your HMD is viewing through. Once you use the Get Velocity node, set a variable to that on your character. From there, read that variable in your animation blueprint under the “Update Animation Event” and assign it to a variable in the Anim BP so it will be easier to access and use. Now, you can use your cameras velocity to play your walk in your State Machine. If Velocity > 0.1 (or whatever is an acceptable value) enter walk state, when less return to idle.

Hi , thank you ! Although it seems easy I think I am missing something here… So, in my player pawn bp I am getting my camera. Then I can not attach it to the get velocity node.
… Also, on my animation bp under my event graph and ‘event bp update animation’ I am casting to my pawn, other notes (i.e. targeting camera, or motion controllers or skeletal mesh etc)…
Could you please send me a bp of how you are setting this up??
Cheers.

So I have the following set up… but does not seem to work for me.
Anyone can help out??

So I have the following set up… but does not seem to work for me.
Anyone can help out??