Hello, colleagues!
I’m working on a project in Unreal Engine and I want to implement a camera shake (or tilt) effect based on the direction of the character’s movement. Specifically, I need the camera to tilt left or right depending on the direction the character is moving (for example, when moving left, the camera tilts left, and when moving right, the camera tilts right).
I’ve tried using Legacy Camera Shake for this, as it allows me to set shake parameters and camera oscillations, but I’ve encountered an issue. I need to pass parameters (such as tilt direction) to the camera through this system, but I’m not sure how to do that.
My questions are:
- How can I correctly pass parameters to Legacy Camera Shake? I want the camera tilt direction to change based on the movement direction (for example, positive values for left tilt and negative for right tilt).
- How can I control the shake amplitude to make it dependent on the character’s movement speed (for example, making the camera tilt more strongly when moving faster)?
- If Legacy Camera Shake isn’t the best way to implement camera tilt based on movement direction, what other methods would you recommend for this task?
I would greatly appreciate any help or example implementations! Thank you!