Announcement

Collapse
No announcement yet.

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

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

    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)

    Click image for larger version

Name:	RotateCameraHelp.png
Views:	1
Size:	127.5 KB
ID:	1216585
    Last edited by Rebel Camp Games; 04-15-2017, 01:39 PM.
    Creative Director at Rebel Camp Games

    http://www.rebelcampgames.com
    http://www.forestsofaugusta.com
    http://www.emberheartgame.com

    #2
    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

    Comment


      #3
      Originally posted by Abarudra View Post
      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:

      Click image for larger version

Name:	RotateCameraHelp.png
Views:	1
Size:	140.1 KB
ID:	1126492
      Creative Director at Rebel Camp Games

      http://www.rebelcampgames.com
      http://www.forestsofaugusta.com
      http://www.emberheartgame.com

      Comment

      Working...
      X