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"

Using Random float in range, bug

alt textSo if I have this setup here to randomly rotate an actor on the pitch and yaw axis, but not the roll axis, it works how you'd expect barring one thing. The roll is not set to zero like it should be. The roll get set to either this alt text or thisalt text Those pictures are from a print function that gets the world rotation of the default scene root. I was able to recreate it in a blank project in 4.14.3 as well, the same thing happens. I don't know what this could be besides a bug

Product Version: UE 4.16
Tags:
more ▼

asked Jun 15 '17 at 08:17 PM in Bug Reports

avatar image

Chef_Seth
18 5 10 13

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

1 answer: sort voted first

This is not a bug. Just rotate with Pitch in the Viewport and see what happens. If you go over -90 with Pitch, roll gets flipped and you are going down with Pitch instead of higher. I don't know why exactly Unreal does this, might be something with Quaternions and directions of the vector (I'm seriously no math expert), but this is intended behavior.

more ▼

answered Jun 15 '17 at 08:56 PM

avatar image

Ninjin
4.2k 88 38 152

(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