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"

Engine Input - Android Tilt, Rotation Rate, Gravity, Acceleration

Hello,

It would appear that within the Engine - Input controls that there are input methods for Tilt, Rotation Rate, Gravity, Acceleration, but are these being stored properly as Vectors? I was reading an article that said it would be added in 4.2, but it's 4.3 now and haven't seen any update. Can we confirm if this is added?

If it isn't it would appear that you would need to make a custom blueprint for these controls. Would utilizing this be the method to use and can we confirm it's possible?

Thanks for your help!

Product Version: Not Selected
Tags:
more ▼

asked Jul 21 '14 at 06:51 PM in Using UE4

avatar image

sneadles
1 2 3 5

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

2 answers: sort voted first

It went in with this commit. And has been available since 4.2.0-preview. The sensors use the regular input system mechanics. I.e. it works the same as the iOS sensors.

more ▼

answered Jul 21 '14 at 08:18 PM

avatar image

GrafikRobot
51 2 2 3

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

Hi Sneadles,

These should all be available to you by 4.2. You can locate the events now using Blueprints and they do return a vector. You can get the Tilt, Gravity, Rotation Rate and Acceleration events by simply searching for them in the right-click menu. If you are having any difficulties with these new events, please let me know and I will be happy to help you further.

-Alexander

more ▼

answered Jul 22 '14 at 03:38 PM

avatar image sneadles Jul 22 '14 at 05:46 PM

Hello Alexander,

I'm trying to accomplish the player to move in the direction that they move their phone. So if they move their phone to the left, the player will move to the left, and depending on how far to the left they move their phone to the left, the faster the player will go.

Below was the original idea of how to get this working. However, as we can see it isn't ;). I believe it's because we need to use the engine inputs directly for acceleration? However, I'm not sure how to utilize those properly. Any advice on how to solve this?

Thank you, alt text

originalbp.jpg (268.9 kB)
(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