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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

How to do a smooth 90 degree turn

Hi how do you do a 90 degree smooth rotation turn, by a press of a button?

Product Version: UE 4.9
Tags:
more ▼

asked Mar 06 '16 at 03:01 AM in Blueprint Scripting

avatar image

MattStH
43 25 30 38

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

2 answers: sort voted first

Either use timeline to animate rotation

https://docs.unrealengine.com/latest/INT/Engine/Blueprints/UserGuide/Timelines/index.html

Or use tick and Lerp function

https://docs.unrealengine.com/latest/INT/BlueprintAPI/Math/Float/Lerp/index.html

If you add Lerp result to rotation, each frame it will advance less and less depending on how you set Alpha. But timeline should be easiest and best preformance

more ▼

answered Mar 06 '16 at 03:35 AM

avatar image

Shadowriver
36.5k 930 169 1111

avatar image MattStH Mar 06 '16 at 03:54 AM

Hi I have tried the timeline before, but never have been able to get it to rotate the character the character direction. This is what I have but I know I'm doing something wrong, if someone could show me how to do this that would be very helpful.alt text

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

Hi, this is how your setup should look, if you want to use Timeline. The timeline uses a float that goes from 0 to 1, which makes the lerp smoothly change the position through interpolation. All of hat gets added to the actor rotation at the end.

alt text

capture.png (94.6 kB)
more ▼

answered Mar 06 '16 at 10:53 AM

avatar image

Sentura
415 32 9 27

avatar image NewgamesNL Jul 02 '16 at 12:02 AM

What are the 2 start rotations

(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