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"

Rotating Camera without using Event Tick

In my 3rd person BP, I currently have it so that on a key press, the camera rotates around the character, using Delta Time as a value. Is there a way to implement the same functionality without the use of Event Tick, perhaps with Timer or Timeline? I've been trying those out, but can't seem to get it to rotate yet. My goal is to have the camera rotate on an event trigger until it hits a certain angle. Help would be much appreciated.alt text

Product Version: UE 4.14
Tags:
rotateblueprint.png (217.3 kB)
more ▼

asked Feb 01 '17 at 08:09 AM in Using UE4

avatar image

LimeDonut
3 2 2 4

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

I like to use the Timeline if I simply want to rotate one lap (360) or continues laps.

I set it up with one Timeline with Float Track value 0 to 1. 0 will represent start and 1 represent 0. The time is how long you want it to take to get from start to finish of your animation, in this example it's 3 sec.

alt text

Then in my Blueprint I set up the float track output value (which increase from 0 - 1 in 3 sec) to the Lerp (same RimmyD above is taking about). The A value will be the value it will have when the Time is 0 in the Timeline and the B value will be the value it will have when the Time is 1 in the Timeline. In this example I interpolate between 0 and 360 which if hooked up to a SetRotationFunction will rotate the Target 360 eg one lap.

alt text

You can trigger the Timeline to Play from Start with any Event you want to. If you want to continue rotating lap after lap, in the Timeline, Enable Loop and it will go on and on.

timeline.png (60.7 kB)
bprotate.png (250.3 kB)
more ▼

answered Feb 02 '17 at 10:23 AM

avatar image

Alltvin
416 9 7 27

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

You can use a Timer the same as tick but you have more control on how often it updates.

What you want to do is use a rInterp node. This takes in a current rotation, a target, how much time has passed (delta time) and the speed you want it to go. It outputs a new value equal to what your rotation would be in the delta time going the supplied speed.

There is an example of this in the Epic Blueprint learning content. The signs that turn to face you work this way.

more ▼

answered Feb 01 '17 at 08:02 PM

avatar image

RimmyD
2.6k 98 16 97

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
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