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"

Convert Rotator to degrees

Any idea to do this?

Im tring to get sun rotation, and convert to degrees, to convert to hours.

Product Version: Not Selected
Tags:
more ▼

asked Apr 02 '14 at 05:37 AM in Blueprint Scripting

avatar image

Raziєl
252 32 32 178

(comments are locked)
10|2000 characters needed characters left

4 answers: sort voted first
more ▼

answered Nov 04 '14 at 01:21 PM

avatar image

SolarVelocity
586 31 77 51

(comments are locked)
10|2000 characters needed characters left

Hi reneberwanger: FRotator stored Pinth/Yaw/Roll in degrees. degrees is a 2D concept. I think you just need the degrees between two difference axis, So you could use Pinth/Yaw/Roll without any convert.

more ▼

answered Apr 02 '14 at 06:09 AM

avatar image

Baesky
187 11 8 15

(comments are locked)
10|2000 characters needed characters left

Yes, in CODE i know it, FRotator.GetDenormalized()... But i want to implement this in BluePrint. Im trying to creating a new node right now.

more ▼

answered Apr 02 '14 at 02:44 PM

avatar image

Raziєl
252 32 32 178

avatar image Baesky Apr 03 '14 at 01:09 AM

you can search function in BP Editor, and right click anywhere. In the context, type in rotator, many useful BP Func are show in context.

avatar image Raziєl Apr 03 '14 at 01:35 AM

GetDenormalized Is not showing with or without context checkbox

(comments are locked)
10|2000 characters needed characters left

This may not be the way you originally anticipated to do it, but I figured out how to get this working via blueprint. First what I did was created a sky sphere so I can set the sun height. The way sun height works is that -1 is on the bottom and 1 is directly above the player. You would have to then rotate the sky sphere 180 degrees to get the sun to peak overhead and complete the next 12 hours. Here the blueprint I came up with to get the value of the sky sphere sun height to an integer variable I named Hours.

alt text

gettimeofday.png (129.3 kB)
more ▼

answered Apr 03 '14 at 01:44 AM

avatar image

krankzinnig
86 6 10 9

avatar image Raziєl Apr 03 '14 at 03:41 AM

Nice, but im not using BP_sky_Sphere. Im Making a new BP. Based on SunLght + AtmosphericFog + Skylight

(comments are locked)
10|2000 characters needed characters left
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