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. 

Static Mesh Rotation in Blueprint: Minimal delta value?

I'm trying to rotate a sphere (static mesh component) in a Blueprint by using the "Add Local Rotation" node. Everything works fine until I enter very low values for the rotation delta - then there is no rotation anymore.

I can enter values as low as 0.03 e.g. for the Pitch delta rotation, but not 0.02. But with a value of 0.03, the sphere is rotating too fast and I simply want a slower rotation rate.

How can I rotate a mesh really slowly? I was thinking of using a texture panner in the material, but my sphere is used as a sky sphere with 6 materials (one texture for each "side").

My assumption is that the per tick value to increase the rotation is so low that it's being ignored and I rather should use an Timeline node and not set a rotation delta every tick, but set the absolute rotation everytime. But is there really a limit for rotation deltas?

Thanks for your time.

Blueprint Graph of Static Mesh Rotation

Product Version: Not Selected
bp_sky.png (29.2 kB)
more ▼

asked Mar 09 '15 at 01:11 AM in Blueprint Scripting

avatar image

183 6 71 23

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

2 answers: sort voted first

Add Local Rotation seems to stall at low values, even outside of fps, I tried it with a loop powered with a 0,01 delay and when I put a value of 0.01 to my pitch, it would return a 0.0 increment.

So instead I propose this: Use a Timeline set to Loop. Add 2 Key frames to it, one set to 0, the other to 360. You can set the time as you wish. I tested it with a length(Time) of up to 3000 which seemed to give that very slow turn that you were looking for. Also, instead of a Add Local Rotation, I used the Set Actor Rotation node, powered by the Update pin of the Timeline. Here are two images to illustrate.

alt text Inside the timeline below, I edited the image to show the values of both Key Frames. And also highlighted the Loop check mark. Aslo, I forgot something very important for you in the timeline, you must check Use Last Keyframe for it to loop properly! alt text Oh and also, depending on your needs, to the left of Loop check box, you can set Auto Play, which will automatically play the Timeline without any event plugged into it. Hopefully this works for you. Enjoy!

editor.png (89.9 kB)
timeline.png (43.6 kB)
more ▼

answered Mar 09 '15 at 07:12 AM

avatar image

916 45 20 77

avatar image Dsine Mar 09 '15 at 03:33 PM

Thanks, with the Timeline node and absolute positioning it works at low speeds.

avatar image Mortusnyte Mar 09 '15 at 06:38 PM

No problem. Remember to accept answers once you have found a solution for tracking purposes :)

avatar image Dsine Mar 09 '15 at 06:48 PM

Oops, thought I did already. Thanks again

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

One thing you can do to get a more 'correct' rotation rate is to create a rotation and scale that by delta seconds. The rotation you create then would be representative of rotation per second instead of rotation per tick. This should at least result in a much more stable rotation.

more ▼

answered Mar 09 '15 at 01:37 AM

avatar image

3.1k 51 119 487

avatar image Dsine Mar 09 '15 at 04:40 AM

Thanks for the answer. For the sake of brevity I left that out in the screenshot. The problem still exists if I use delta time and with slightly higher rotation delta values, I get really strange results like that the rotation is faster when I move the mouse and slower when it stands still...

(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