x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Making a RTS Camera that can rotate and also turn

Hello all, This is my First post on this site, I'm also very new to UE4.

So as a way to understand the editor I have been remaking an old RTS game as a hobby and I've just hit what I think is my first major roadblock.

I have made a camera system that's quite in-depth.

W = Foward. S = Back. A = Turn_L. D = Turn_R. Z= Strafe_L. X= Strafe_R. C= ZoomIn. V= ZoomOut. A= Orbit Rotation_L. D= Orbit Rotation_R.

The problem is I've got a dummy set for the camera to know where to look and when I use my turn camera it will snap back to the location of the dummy when I next use an orbit or zoom input. and if I try and rotate the dummy it throws the whole camera off.

Any idea of the best way of getting around this is?

Thanks, in advance for your help

Ed

Product Version: UE 4.20
Tags:
more ▼

asked Nov 11 '18 at 04:01 PM in Blueprint Scripting

avatar image

EchoDelta M
6 1

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

You need to lock the rotation so it can't go beyond a certain limit. Here's a great video on the exact question your asking.

There's 3 parts to it, takes a while to get through but it's the exact setup I'm using in my practice project rn.

more ▼

answered Nov 11 '18 at 04:16 PM

avatar image

PerCat
23 1 2 6

avatar image EchoDelta M Dec 05 '18 at 05:45 PM

I'm not having a great time with this playlist, to be honest. I have a feeling out may be out of date.

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question