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"

Endless rotation of actor


I would like to rotate actor endlessly.

This is my code: BP code

But my actor doesn't rotate. Print String shows numbers like 8.xyz every tick.

Product Version: UE 4.15
more ▼

asked Jun 14 '18 at 05:04 PM in Blueprint Scripting

avatar image

67 10 16 22

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

1 answer: sort voted first

Delta Seconds is not a running count of how much time has passed. It tends to average around 0.16 when your framerate is stable. It merely tells you how many milliseconds it's been since the last Tick. So you are going to get roughly the same number out of it every time.

Instead of SetActorRotation you should AddRelativeRotation or something like that so that each tick you increase the rotation a little bit instead of setting it to almost the same thing over and over again.

Another way you can accomplish an endless rotation is to add a RotationMovement Component (I think it's called). Then you don't even have to put anything in the blueprint to make it spin. Just set your values in the details panel and voila!

more ▼

answered Jun 14 '18 at 06:26 PM

avatar image

3.7k 18 23 20

avatar image t0msk Jun 14 '18 at 07:36 PM

Thank you :)

(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