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"

Rotate Vector Radial Value to a non-cardinal angle?

I create a Vector Radial and want to rotate it so it starts at -45 degrees. It can be flipped to all cardinal angles by using Swizzle and OneMinus but is there a way to get my desired output (shown below)? alt text alt text

Product Version: UE 4.21
Tags:
more ▼

asked Jan 11 '19 at 11:18 AM in Blueprint Scripting

avatar image

Regentlord
24 2 2 4

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

1 answer: sort voted first

You could use a Rotator node like this:
alt text

If the Speed param in there is set to 1 then the Time input goes from 0 to 2*Pi for a full circle. In the example the scalar param is set up to be in an easy to understand range of 0..1.

more ▼

answered Jan 11 '19 at 11:30 AM

avatar image

ZoltanE
1.6k 80 94 146

avatar image Tuerer Jan 11 '19 at 12:02 PM

Custom Rotator would do a better job, because palpating for that time value is excruciating. Just add a Custom Rotator and set its value to -0.125.

avatar image ZoltanE Jan 11 '19 at 12:33 PM

Fair enough, here is a version for degrees as input which is indeed easier to work with:
alt text

avatar image Regentlord Jan 12 '19 at 12:32 AM

This looks like what I need, but when I try to put it in like you did it it just gives me a solid white output. alt text

rotator.png (137.3 kB)
avatar image ZoltanE Jan 12 '19 at 07:13 AM

Oh, the values for ConstantBiasScale are -0.5 and 2.

avatar image Regentlord Jan 12 '19 at 09:26 AM

Perfect, 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