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"

How to get device pitch, yaw and roll in degrees?

I'm trying to use the device current orientation to set the player's rotation, so far I've tried to using the Get Input Motion State, but I can't seem to make sense of the values of Tilt and Gravity, I get values ranging from -1 to 1 and from -1.50 to 1.50 respectively, is it posible to create a rotator using these values, and if so can you explain. Thanks.

Product Version: Not Selected
Tags:
more ▼

asked Jun 09 '14 at 03:16 AM in Blueprint Scripting

avatar image

jpaez
26 2 3 4

avatar image MinxiesDev Sep 03 '15 at 11:15 PM

Also interested in a reply to this

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

1 answer: sort voted first

An idea that pops to mind is to take the axis inputs and then multiply them by 180 and then make a rotator of the x and y -180,180 makes 360 degrees, then maybe negate the negative rotator and * the 180 by 2

We need to exlore this more for a real answer its new territory. It will involve the raw axis values multiplied, turned into vectors and rotators, and back and forth all over the place. i dont know of a guide anywhere it jus takes debugging and experimentation. A temporary hud to display the values will be your best friend here thats how I make realistic data for fluid simulations for flight and water based games.

more ▼

answered Sep 03 '15 at 11:18 PM

avatar image

Nsomnia
1.8k 67 27 137

(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