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"

How to Script Object to Rotate Fixed Amount

Hello,

I'm sure there is a simple solution for this but I can't seem to find anything online. Everything I find just shows how to script an object to rotate indefinitely. What I want is for the object to rotate only 270 degrees on just one axis and then stop. Whats the simplest way to accomplish this?

Product Version: UE 4.21
Tags:
more ▼

asked Dec 10 '18 at 04:25 PM in Blueprint Scripting

avatar image

Skisma
63 7 11 13

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

1 answer: sort voted first

You can use timeline for that, this will allow you to control the look and 'feel' of rotation change too, using curves:

RotatorHelp

Timeline:

TimelineHelp

... You can also make it add to current object rotation like that:

CombineRotHelp

By controlling the timeline curve you can also set rotation speed and other things.

ah8.png (137.1 kB)
ah9.png (34.5 kB)
ah10.png (131.0 kB)
more ▼

answered Dec 10 '18 at 04:48 PM

avatar image

Slavq
1.9k 150 143 200

avatar image Skisma Dec 11 '18 at 09:41 PM

Thanks! Quick question, for the "Progress" track did you create a new float track or new event track?

avatar image Slavq Dec 11 '18 at 09:42 PM

It's a new float track, the first button.

(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