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"

Spinning Static Mesh Glitch

I have an object, a huge box that is my "outside" in my level. I am trying to get it to rotate so I set the mesh to "movable" then "add component" and did a "scene blueprint", here is the code I have below:

Everything is going fine, until I think it hits one full rotation and then it gets stuck and glitches out by wiggling back and forth, like its stuck. Any help would be great, thanks.

alt text

Product Version: UE 4.8
ss1.png (194.5 kB)
more ▼

asked Dec 18 '15 at 06:44 PM in Blueprint Scripting

avatar image

28 6 8 11

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

1 answer: sort voted first

Hello bootstrotter,

This is due to how rotation works in a 3D space. When it comes to programming how rotation works, the use of Quaternions is required which ends up with the rotation axis not always be 0 to 360 or -180 to 180. In the case of Pitch (rotating along the Y) this value cannot go past 90 degrees. The stuttering is a result of the rotation being set past 90 and then being brought back.

This would require some complicated equations to get the desired effect. If it works for you however, you can use a Rotating Movement component to achieve the same effect, which will take into account these restrictions and work past them. Please note that the value for the rotation on the Rotating Movement component will need to be much higher than what it was per Tick, as 0.1 won't even look like it's moving.

Hope this helps!

more ▼

answered Dec 18 '15 at 10:04 PM

(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