Download

Top-down rotating camera problem with setting bounds for y rotation

Hi,

I’m trying to implement a rotating camera for my topdown action rpg. So far it works, but in y direction there needs to be boundaries. How can I set boundaries for the rotation?

Any help would be greatly appreciated! Thanks in advance!

Here’s what I have so far: (I tried with clamp, but that’s obviously not working to set boundaries, all it does is limit the speed of the rotation)

27b6c8b71ab6f534f30438f66f64084e0f77322a.png

There are many ways to do this.

Try to use Set Relative Rotation that way you can clamp the rotation of your spring arm directly.
Or you use player controller and its functionality to interact with Spring Arm components.

Regards

Thanks! using Set Relative Rotation worked perfectly!

For other people googling this, here’s my blueprint of it working:

8b7f7d72b5007b1a6f7d3e41b8e1fd98e204cbd1.png